qrm2/Dockerfile

26 lines
594 B
Docker
Raw Normal View History

FROM python:3.9-slim
2019-11-02 16:56:53 -04:00
COPY . /app
WORKDIR /app
ENV PYTHON_BIN python3
2019-11-02 16:56:53 -04:00
RUN \
apt-get update && \
2019-11-02 16:56:53 -04:00
echo "**** install runtime packages ****" && \
apt-get install -y --no-install-recommends \
libcairo2 \
libjpeg62-turbo \
python-lxml \
&& \
2019-11-02 16:56:53 -04:00
echo "**** install pip packages ****" && \
pip3 install -U pip setuptools wheel && \
pip3 install -r requirements.txt && \
echo "**** clean up ****" && \
rm -rf \
/root/.cache \
/tmp/* \
/var/lib/apt/lists/*
2019-11-02 16:56:53 -04:00
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]