Spaces:
Running
Running
ykxVK8yL5L
commited on
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
@@ -6,25 +6,25 @@ LABEL email="[email protected]"
|
|
6 |
RUN chmod -R 777 /var
|
7 |
RUN chmod 777 /etc/timezone
|
8 |
|
9 |
-
RUN useradd -m -u 1000 user
|
10 |
-
USER user
|
11 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
12 |
-
|
13 |
-
|
14 |
RUN set -x && \
|
15 |
apt-get update && \
|
16 |
apt-get install --no-install-recommends -y git && \
|
17 |
-
echo "Asia/Shanghai" >/etc/timezone && \
|
18 |
git config --global user.email "filecodebox@@users.noreply.github.com" && \
|
19 |
git config --global user.name "filecodebox" && \
|
20 |
git config --global http.postBuffer 524288000
|
21 |
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
RUN git clone https://github.com/vastsa/FileCodeBox /user/app
|
25 |
|
26 |
-
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
27 |
-
RUN echo 'Asia/Shanghai' >/etc/timezone
|
28 |
WORKDIR /user/app
|
29 |
RUN pip install -r requirements.txt
|
30 |
EXPOSE 12345
|
|
|
6 |
RUN chmod -R 777 /var
|
7 |
RUN chmod 777 /etc/timezone
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
RUN set -x && \
|
10 |
apt-get update && \
|
11 |
apt-get install --no-install-recommends -y git && \
|
|
|
12 |
git config --global user.email "filecodebox@@users.noreply.github.com" && \
|
13 |
git config --global user.name "filecodebox" && \
|
14 |
git config --global http.postBuffer 524288000
|
15 |
|
16 |
|
17 |
+
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
18 |
+
RUN echo 'Asia/Shanghai' >/etc/timezone
|
19 |
+
|
20 |
+
|
21 |
+
RUN useradd -m -u 1000 user
|
22 |
+
USER user
|
23 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
24 |
+
|
25 |
|
26 |
RUN git clone https://github.com/vastsa/FileCodeBox /user/app
|
27 |
|
|
|
|
|
28 |
WORKDIR /user/app
|
29 |
RUN pip install -r requirements.txt
|
30 |
EXPOSE 12345
|