diff --git a/Dockerfile b/Dockerfile index a39276a..1fb9a44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,7 @@ FROM python:3.8-alpine # install required packages -RUN apk add --no-cache gcc -RUN apk add --no-cache python3-dev -RUN apk add --no-cache libc-dev -RUN apk add --no-cache libffi-dev -RUN apk add --no-cache openssl -RUN apk add --no-cache openssl-dev +RUN apk add --no-cache gcc libc-dev libffi-dev openssl openssl-dev python3-dev # add user that will be used to install and run the application RUN adduser -D deploy @@ -27,10 +22,7 @@ RUN flit install --pth-file # switch back to root to remove header files USER root -RUN apk del python3-dev -RUN apk del libc-dev -RUN apk del libffi-dev -RUN apk del openssl-dev +RUN apk del libc-dev libffi-dev openssl-dev python3-dev # switch to the created user to run the application USER deploy