18 lines
672 B
Plaintext
18 lines
672 B
Plaintext
FROM python as builder
|
|
RUN apt-get update && apt-get install -y gcc make automake
|
|
# RUN apk update && apk add --no-cache make python3-dev automake gcc libxml2-dev libxslt-dev g++
|
|
ADD app/requirements.txt /requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
RUN pip install pylint
|
|
ADD app /app
|
|
RUN printf "\n\nTesting your python code for errors\n\n" && \
|
|
pylint -E /app/*.py
|
|
|
|
# FROM python:rc-slim-buster
|
|
# COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/
|
|
# ADD app /app
|
|
WORKDIR /app
|
|
RUN printf "\n#########################\n Run dragon bot by typing \n python dragon-bot.py\n#########################\n\n"
|
|
|
|
CMD python /app/bot.py
|