Spaces:
Paused
Paused
| FROM python:3.9.5-slim-buster | |
| LABEL author="Lan" | |
| LABEL email="vast@tom.com" | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| RUN set -x && \ | |
| apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get install --no-install-recommends -y git \ | |
| curl \ | |
| wget \ | |
| tzdata \ | |
| perl \ | |
| openssl \ | |
| openssh-client \ | |
| nginx \ | |
| jq \ | |
| procps \ | |
| netcat \ | |
| unzip \ | |
| libatomic1 && \ | |
| apt-get clean && \ | |
| ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ | |
| echo "Asia/Shanghai" >/etc/timezone && \ | |
| git config --global user.email "filecodebox@@users.noreply.github.com" && \ | |
| git config --global user.name "filecodebox" && \ | |
| git config --global http.postBuffer 524288000 && | |
| RUN git clone https://github.com/vastsa/FileCodeBox /user/app | |
| RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
| RUN echo 'Asia/Shanghai' >/etc/timezone | |
| WORKDIR /user/app | |
| RUN pip install -r requirements.txt | |
| EXPOSE 12345 | |
| CMD ["python","main.py"] |