From 9545edf95487576d1319bcc4613ad5662b0c39e0 Mon Sep 17 00:00:00 2001 From: morph027 Date: Mon, 10 Jul 2023 20:24:19 +0200 Subject: [PATCH] use python:3-slim Signed-off-by: morph027 --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index d56cb54..04f5854 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ -FROM python:3-alpine as builder +FROM python:3 as builder RUN python3 -m venv /opt/virtualenv \ - && apk --no-cache add \ - build-base + && apt-get update \ + && apt-get install build-essential COPY requirements.txt ./ # pycryptodomex 3.14 currently fails to compile for arm64 RUN /opt/virtualenv/bin/pip3 install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt -FROM python:3-alpine +FROM python:3-slim -RUN adduser -S -H sungather +RUN useradd -r -m sungather COPY --from=builder /opt/virtualenv /opt/virtualenv