Condensing the docker file in to fewer steps
This commit is contained in:
parent
737f306410
commit
a3f73b1cd6
@ -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
|
||||
|
@ -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" && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user