From 73886fbc0e15966a4251835b83698aeac24f98d2 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Mon, 6 Mar 2023 17:06:43 +0400 Subject: [PATCH] Gunicorn in Docker bugfix --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f122a76..ae4736f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,10 @@ COPY . . RUN pip wheel --no-cache-dir -w /app/wheels -r requirements.txt FROM alpine:latest as run -RUN apk add --no-cache python3 py3-pip make mariadb-connector-c-dev +RUN apk add --no-cache python3 py3-setuptools py3-pip make mariadb-connector-c-dev COPY --from=build /app /app WORKDIR /app RUN pip install --no-cache-dir --find-links /app/wheels -r requirements.txt -RUN apk del py3-pip && rm -rf /app/wheels +RUN pip cache purge && apk del py3-pip && rm -rf /var/cache/apk/* && rm -rf /app/wheels CMD make prod EXPOSE 8000