Michal Kobus | 492d8bc | 2021-02-15 16:54:13 +0100 | [diff] [blame^] | 1 | FROM python:3.9.1-alpine3.13 |
vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame] | 2 | |
| 3 | WORKDIR /app |
Michal Kobus | 492d8bc | 2021-02-15 16:54:13 +0100 | [diff] [blame^] | 4 | ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 |
vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame] | 5 | |
| 6 | COPY requirements.txt ./ |
Michal Kobus | 492d8bc | 2021-02-15 16:54:13 +0100 | [diff] [blame^] | 7 | RUN 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 |
vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame] | 22 | COPY . . |
| 23 | CMD ./entrypoint.sh |