From 2287bc6a3a4aa7ea4653b427d8023f0f8c15e0e8 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 6 Sep 2021 12:19:30 +0200 Subject: [PATCH] removed alpine dockerfile --- Dockerfile alpine | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 Dockerfile alpine diff --git a/Dockerfile alpine b/Dockerfile alpine deleted file mode 100644 index 80fd363..0000000 --- a/Dockerfile alpine +++ /dev/null @@ -1,30 +0,0 @@ -FROM python:3.8-alpine - -# install required packages -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 addgroup -g 1000 deploy -RUN adduser -D -u 1000 -G deploy deploy - -# switch to the created user and install the application -USER deploy -ENV PATH "$PATH:/home/deploy/.local/bin" - -COPY . /app -WORKDIR /app - -RUN pip install --upgrade pip -RUN pip install gunicorn -RUN pip install wheel - -RUN pip install -r requirements.txt -RUN flit install --pth-file - -# switch back to root to remove header files -USER root -RUN apk del libc-dev libffi-dev openssl-dev python3-dev - -# switch to the created user to run the application -USER deploy -CMD ["gunicorn", "--paster", "/app/production.ini", "-b", "0.0.0.0:8000"]