Spaces:
Running
Running
File size: 746 Bytes
598b837 0923119 ff00841 5979634 9aa4395 0923119 598b837 32a4716 598b837 260748a 598b837 8c77acb 598b837 8c77acb 598b837 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
FROM python:3.9.5-slim-buster
LABEL author="Lan"
LABEL email="[email protected]"
RUN chmod -R 777 /var
RUN chmod 777 /etc/timezone
RUN set -x && \
apt-get update && \
apt-get install --no-install-recommends -y git && \
git config --global user.email "filecodebox@@users.noreply.github.com" && \
git config --global user.name "filecodebox" && \
git config --global http.postBuffer 524288000
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
RUN git clone https://github.com/vastsa/FileCodeBox /home/user/app
WORKDIR /home/user/app
RUN pip install -r requirements.txt
EXPOSE 12345
CMD ["python","main.py"] |