Merge pull request #209 from svengo/patch-1

Update Dockerfile
pull/199/merge
Shengdun Hua 2021-03-11 23:01:31 +08:00 committed by GitHub
commit 2f0d5809ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
FROM python:3.7-slim
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt
RUN \
groupadd -r webssh && \
useradd -r -s /bin/false -g webssh webssh && \
chown -R webssh:webssh /code && \
pip install -r requirements.txt
EXPOSE 8888/tcp
USER webssh
CMD ["python", "run.py"]