ykxVK8yL5L commited on
Commit
598b837
1 Parent(s): 402e629

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +43 -0
Dockerfile ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9.5-slim-buster
2
+ LABEL author="Lan"
3
+ LABEL email="[email protected]"
4
+
5
+
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+ ENV PATH="/home/user/.local/bin:$PATH"
9
+
10
+
11
+ RUN set -x && \
12
+ apt-get update && \
13
+ apt-get upgrade -y && \
14
+ apt-get install --no-install-recommends -y git \
15
+ curl \
16
+ wget \
17
+ tzdata \
18
+ perl \
19
+ openssl \
20
+ openssh-client \
21
+ nginx \
22
+ jq \
23
+ procps \
24
+ netcat \
25
+ unzip \
26
+ libatomic1 && \
27
+ apt-get clean && \
28
+ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
29
+ echo "Asia/Shanghai" >/etc/timezone && \
30
+ git config --global user.email "filecodebox@@users.noreply.github.com" && \
31
+ git config --global user.name "filecodebox" && \
32
+ git config --global http.postBuffer 524288000 &&
33
+
34
+
35
+
36
+ RUN git clone https://github.com/vastsa/FileCodeBox /user/app
37
+
38
+ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
39
+ RUN echo 'Asia/Shanghai' >/etc/timezone
40
+ WORKDIR /user/app
41
+ RUN pip install -r requirements.txt
42
+ EXPOSE 12345
43
+ CMD ["python","main.py"]