Skip to content

Commit

Permalink
Merge pull request huashengdun#209 from svengo/patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
huashengdun authored Mar 11, 2021
2 parents 7b8f473 + 8238a49 commit 2f0d580
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 2f0d580

Please sign in to comment.