Dockerfile (252B)
1 FROM python:3.7-slim 2 ADD . /code 3 WORKDIR /code 4 RUN \ 5 groupadd -r webssh && \ 6 useradd -r -s /bin/false -g webssh webssh && \ 7 chown -R webssh:webssh /code && \ 8 pip install -r requirements.txt 9 10 EXPOSE 8888/tcp 11 USER webssh 12 CMD ["python", "run.py"]