Condensing the docker file in to fewer steps

This commit is contained in:
Luke Robles 2017-09-26 14:32:09 -07:00
parent 737f306410
commit a3f73b1cd6
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
FROM python:3.6.2-alpine3.6 FROM python:3.6.2-alpine3.6
LABEL name="Dragon Bot" LABEL name="Dragon Bot"
RUN apk update && apk add --no-cache docker RUN apk update && \
apk add --no-cache vim docker && \
RUN pip install requests discord.py docker wolframalpha pyowm beautifulsoup4 yahoo-finance pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
ADD app /app ADD app /app
CMD python app/dragon-bot.py CMD python app/dragon-bot.py

View File

@ -1,8 +1,8 @@
FROM python:3.6.2-alpine3.6 FROM python:3.6.2-alpine3.6
LABEL name="Dragon Bot Test environment" LABEL name="Dragon Bot Test environment"
RUN apk update && apk add --no-cache vim docker RUN apk update && \
apk add --no-cache vim docker && \
RUN pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
ADD app /app ADD app /app
RUN printf "\n\nTesting your python code for errors\n\n" && \ RUN printf "\n\nTesting your python code for errors\n\n" && \