blob: 20c8f132847dfcc9b00cb69bb2f648edc0f5ba7c [file] [log] [blame]
Michal Kobus492d8bc2021-02-15 16:54:13 +01001FROM python:3.9.1-alpine3.13
vitalygusev507dfdb2019-05-28 12:53:55 +04002
3WORKDIR /app
Michal Kobus492d8bc2021-02-15 16:54:13 +01004ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
vitalygusev507dfdb2019-05-28 12:53:55 +04005
6COPY requirements.txt ./
Michal Kobus492d8bc2021-02-15 16:54:13 +01007RUN addgroup --gid 1000 \
8 sfnotifier && \
9 adduser --ingroup sfnotifier \
10 --uid 1000 \
11 --disabled-password \
12 --home /app \
13 sfnotifier && \
14 apk upgrade --update --no-cache && \
15 apk add --no-cache \
16 build-base \
17 openssl-dev \
18 libffi-dev && \
19 pip install --upgrade pip && \
20 pip install -r /app/requirements.txt && \
21 apk del build-base
vitalygusev507dfdb2019-05-28 12:53:55 +040022COPY . .
23CMD ./entrypoint.sh