From a053f908751085755856f99f52c6c8bb0e70b38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bondis?= Date: Sun, 31 Mar 2019 00:56:42 -0400 Subject: [PATCH] docs: user ARG to chose image, install python3 before running pip3 --- docs/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Dockerfile b/docs/Dockerfile index c2661262..b3257a80 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -1,12 +1,13 @@ -FROM python:3-alpine +ARG DISTRO=alpine:3.8 +FROM $DISTRO COPY requirements.txt /requirements.txt ARG version=master ENV VERSION=$version -RUN pip install -r /requirements.txt \ - && apk add --no-cache nginx curl \ +RUN apk add --no-cache nginx curl python3 \ + && pip3 install -r /requirements.txt \ && mkdir /run/nginx COPY ./nginx.conf /etc/nginx/conf.d/default.conf