Moving to using a requirements file, fixes #32
This commit is contained in:
parent
1103a7f0f4
commit
fa023ca94a
@ -4,7 +4,7 @@ services:
|
||||
|
||||
before_script:
|
||||
- apk add --no-cache python3
|
||||
- pip3 install pylint requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
|
||||
- pip3 install -r app/requirements.txt
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
@ -1,8 +1,7 @@
|
||||
FROM python:3.6.2-alpine3.6
|
||||
LABEL name="Dragon Bot"
|
||||
ADD app/requirements.txt /requirements.txt
|
||||
RUN apk update && \
|
||||
apk add --no-cache vim docker && \
|
||||
pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
|
||||
apk add --no-cache docker && \
|
||||
pip install -r requirements.txt
|
||||
ADD app /app
|
||||
|
||||
CMD python app/dragon-bot.py
|
||||
CMD python /app/dragon-bot.py
|
||||
|
@ -1,10 +1,10 @@
|
||||
FROM python:3.6.2-alpine3.6
|
||||
LABEL name="Dragon Bot Test environment"
|
||||
ADD app/requirements.txt /requirements.txt
|
||||
RUN apk update && \
|
||||
apk add --no-cache vim docker && \
|
||||
pip install requests discord.py docker pylint wolframalpha pyowm beautifulsoup4 yahoo-finance
|
||||
ADD app /app
|
||||
pip install -r requirements.txt
|
||||
|
||||
ADD app /app
|
||||
RUN printf "\n\nTesting your python code for errors\n\n" && \
|
||||
pylint -E /app/*.py
|
||||
|
||||
|
8
app/requirements.txt
Normal file
8
app/requirements.txt
Normal file
@ -0,0 +1,8 @@
|
||||
beautifulsoup4
|
||||
discord.py
|
||||
docker
|
||||
pylint
|
||||
pyowm
|
||||
requests
|
||||
wolframalpha
|
||||
yahoo-finance
|
Loading…
x
Reference in New Issue
Block a user