blob: 6f44744592a7caa4005e5e0aebfba27f1c5a71c6 [file] [log] [blame]
FROM python:3.9.1-alpine3.13
LABEL build_date="2022-02-03"
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