dragon-bot/Dockerfile

15 lines
515 B
Docker
Executable File

FROM python:3.8 as build
ADD app/requirements.txt /requirements.txt
RUN pip install setuptools-scm-git-archive
RUN pip install --default-timeout=100 --no-cache-dir -q -r requirements.txt
FROM python:3.8-slim
RUN apt-get update
RUN apt-get install -y --no-install-recommends imagemagick
RUN apt-get autoremove -y
RUN apt-get purge -y --auto-remove
RUN 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