sprucing up the test-env dockerfile

This commit is contained in:
Luke Robles 2020-08-07 10:21:51 -07:00
parent 97bb210e57
commit cc6a4e8af0

View File

@ -3,9 +3,13 @@ RUN apt-get update && apt-get install -y gcc python-pip
ADD app/requirements.txt /requirements.txt
RUN pip install -r requirements.txt
ADD app /app
#RUN printf "\n\nTesting your python code for errors\n\n" && \
# pylint -E /app/*.py
RUN pip install pylint
RUN printf "\n\nTesting your python code for errors\n\n" && \
pylint -E /app/*.py
FROM python:alpine
COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/
COPY --from=builder /app /app
WORKDIR /app
RUN printf "\n#########################\n Run dragon bot by typing \n python dragon-bot.py\n#########################\n\n"