dragon-bot/Dockerfile
2023-05-18 08:02:52 -07:00

14 lines
475 B
Docker
Executable File

FROM python:3.8 as build
ADD app/requirements.txt /requirements.txt
RUN pip install --verbose --no-cache-dir -r requirements.txt
FROM python:3.8-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends imagemagick &&\
apt-get autoremove -y && \
apt-get purge -y --auto-remove && \
rm -rf /var/lib/apt/lists/* /root
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
ADD app /app
CMD python /app/bot.py