2022-05-27 11:47:19 +00:00
|
|
|
FROM python:3-alpine
|
|
|
|
|
|
|
|
LABEL maintainer='<author>'
|
|
|
|
LABEL version='0.0.0-dev.0-build.0'
|
|
|
|
|
2019-04-18 11:39:14 +00:00
|
|
|
ADD . /code
|
|
|
|
WORKDIR /code
|
2021-03-10 14:11:20 +00:00
|
|
|
RUN \
|
2022-05-27 11:47:19 +00:00
|
|
|
apk add --no-cache libc-dev libffi-dev gcc && \
|
|
|
|
pip install -r requirements.txt --no-cache-dir && \
|
|
|
|
apk del gcc libc-dev libffi-dev && \
|
|
|
|
addgroup webssh && \
|
|
|
|
adduser -Ss /bin/false -g webssh webssh && \
|
|
|
|
chown -R webssh:webssh /code
|
2021-03-10 14:11:20 +00:00
|
|
|
|
|
|
|
EXPOSE 8888/tcp
|
|
|
|
USER webssh
|
2019-04-18 11:39:14 +00:00
|
|
|
CMD ["python", "run.py"]
|