blob: 20c8f132847dfcc9b00cb69bb2f648edc0f5ba7c [file] [log] [blame]
FROM python:3.9.1-alpine3.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