pull/321/merge
bain3 2023-05-03 11:26:04 +03:00 committed by GitHub
commit da54f661db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -3,12 +3,15 @@ FROM python:3-alpine
LABEL maintainer='<author>' LABEL maintainer='<author>'
LABEL version='0.0.0-dev.0-build.0' LABEL version='0.0.0-dev.0-build.0'
ADD . /code ADD requirements.txt /code/requirements.txt
WORKDIR /code WORKDIR /code
RUN \ RUN \
apk add --no-cache libc-dev libffi-dev gcc && \ apk add --no-cache libc-dev libffi-dev gcc && \
pip install -r requirements.txt --no-cache-dir && \ pip install -r requirements.txt --no-cache-dir && \
apk del gcc libc-dev libffi-dev && \ apk del gcc libc-dev libffi-dev
ADD . /code
RUN \
addgroup webssh && \ addgroup webssh && \
adduser -Ss /bin/false -g webssh webssh && \ adduser -Ss /bin/false -g webssh webssh && \
chown -R webssh:webssh /code chown -R webssh:webssh /code