From 3a8bef4ddc1cdec1d6d4f0dd254fea8e164c329e Mon Sep 17 00:00:00 2001 From: ge Date: Thu, 17 Mar 2022 21:42:06 +0300 Subject: [PATCH] feat: Reduce image size from ~930M to ~85M --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 55a26d4..ea2969f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ -FROM python:latest +FROM alpine:latest +RUN apk update && apk add python3 py3-pip ADD . /opt/imgs RUN mkdir -p /opt/imgs/uploads WORKDIR /opt/imgs RUN pip install --upgrade pip && pip install --requirement requirements.txt +RUN pip install gunicorn EXPOSE 5000 CMD gunicorn imgs:app --bind :5000