Browse Source

Trying to spead up docker build

funding-tag
Holger Frey 4 years ago
parent
commit
22e13d50de
  1. 12
      Dockerfile

12
Dockerfile

@ -1,12 +1,7 @@ @@ -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 @@ -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

Loading…
Cancel
Save