diff --git a/Dockerfile b/Dockerfile index b5d4b60..06df1a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ WORKDIR /build COPY pyproject.toml . -RUN pip install --no-cache-dir --prefix=/install . +RUN apk update --no-cache && apk upgrade --no-cache && \ + pip install --no-cache-dir --prefix=/install . COPY app.py . @@ -18,6 +19,8 @@ COPY --from=builder /install /usr/local WORKDIR /app COPY app.py . +RUN apk update --no-cache && apk upgrade --no-cache + USER appuser ENTRYPOINT ["python", "app.py"]