From a3f73b1cd6535cb2698423796498fda7db2732d8 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 26 Sep 2017 14:32:09 -0700 Subject: [PATCH] Condensing the docker file in to fewer steps --- Dockerfile | 6 +++--- Dockerfile-test-env | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f363aca9..5a5b5abb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM python:3.6.2-alpine3.6 LABEL name="Dragon Bot" -RUN apk update && apk add --no-cache docker - -RUN pip install requests discord.py docker wolframalpha pyowm beautifulsoup4 yahoo-finance +RUN apk update && \ + apk add --no-cache vim docker && \ + pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance ADD app /app CMD python app/dragon-bot.py diff --git a/Dockerfile-test-env b/Dockerfile-test-env index d47534e8..dd3ebbba 100644 --- a/Dockerfile-test-env +++ b/Dockerfile-test-env @@ -1,8 +1,8 @@ FROM python:3.6.2-alpine3.6 LABEL name="Dragon Bot Test environment" -RUN apk update && apk add --no-cache vim docker - -RUN pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance +RUN apk update && \ + apk add --no-cache vim docker && \ + pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance ADD app /app RUN printf "\n\nTesting your python code for errors\n\n" && \