From 9f551f03a852e556e58fba3bf7ff2a2eafc8764a Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 11 Sep 2020 12:48:06 +0000 Subject: [PATCH] Simplify image. --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8ff5eb0..e7f2d0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ -FROM python:3-alpine AS builder +FROM python:3-alpine AS base + +# Image to Build Dependencies +FROM base AS builder WORKDIR /usr/src/app @@ -11,7 +14,8 @@ RUN apk --no-cache add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-d RUN pip install --no-cache-dir --prefix=/install wheel cryptography gunicorn pymysql RUN pip install --no-cache-dir --prefix=/install -r requirements.txt -FROM python:3-alpine +# Runtime Environment Image +FROM base WORKDIR /usr/src/app