blob: 91472efaab586aa9cb9c1a25882a5bcca8df640d [file] [log] [blame]
FROM python:3.9.1-alpine3.13
LABEL build_date="2022-04-13"
WORKDIR /app
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
COPY requirements.txt ./
RUN addgroup --gid 1000 \
sfnotifier && \
adduser --ingroup sfnotifier \
--uid 1000 \
--disabled-password \
--home /app \
sfnotifier && \
apk upgrade --update --no-cache && \
apk add --no-cache \
build-base \
openssl-dev \
libffi-dev && \
pip install --upgrade pip && \
pip install -r /app/requirements.txt && \
apk del build-base
COPY . .
CMD ./entrypoint.sh