FROM python:3.10.8-alpine3.16 | |
LABEL build_date="2022-05-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 |