I admit defeat. have to build it on python 3.8
This commit is contained in:
parent
c9cf63a92b
commit
c967e304e6
@ -4,7 +4,5 @@ RUN apt-get update && apt-get install -y gcc python-pip
|
|||||||
ADD app/requirements.txt /requirements.txt
|
ADD app/requirements.txt /requirements.txt
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
FROM python:alpine
|
|
||||||
COPY --from=build /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/
|
|
||||||
ADD app /app
|
ADD app /app
|
||||||
CMD python /app/dragon-bot-updated.py
|
CMD python /app/dragon-bot-updated.py
|
||||||
|
@ -6,10 +6,6 @@ RUN pip install pylint
|
|||||||
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" && \
|
||||||
pylint -E /app/*.py
|
pylint -E /app/*.py
|
||||||
|
|
||||||
FROM python:alpine
|
|
||||||
COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/
|
|
||||||
ADD app /app
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN printf "\n#########################\n Run dragon bot by typing \n python dragon-bot.py\n#########################\n\n"
|
RUN printf "\n#########################\n Run dragon bot by typing \n python dragon-bot.py\n#########################\n\n"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user