|
|
@ -1,11 +1,17 @@ |
|
|
|
FROM python:3.7-slim |
|
|
|
FROM python:3-alpine |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LABEL maintainer='<author>' |
|
|
|
|
|
|
|
LABEL version='0.0.0-dev.0-build.0' |
|
|
|
|
|
|
|
|
|
|
|
ADD . /code |
|
|
|
ADD . /code |
|
|
|
WORKDIR /code |
|
|
|
WORKDIR /code |
|
|
|
RUN \ |
|
|
|
RUN \ |
|
|
|
groupadd -r webssh && \ |
|
|
|
apk add --no-cache libc-dev libffi-dev gcc && \ |
|
|
|
useradd -r -s /bin/false -g webssh webssh && \ |
|
|
|
pip install -r requirements.txt --no-cache-dir && \ |
|
|
|
chown -R webssh:webssh /code && \ |
|
|
|
apk del gcc libc-dev libffi-dev && \ |
|
|
|
pip install -r requirements.txt |
|
|
|
addgroup webssh && \ |
|
|
|
|
|
|
|
adduser -Ss /bin/false -g webssh webssh && \ |
|
|
|
|
|
|
|
chown -R webssh:webssh /code |
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 8888/tcp |
|
|
|
EXPOSE 8888/tcp |
|
|
|
USER webssh |
|
|
|
USER webssh |
|
|
|