mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-15 12:42:02 -05:00
361d4f894e
fixes #361
26 lines
594 B
Docker
26 lines
594 B
Docker
FROM python:3.9-slim
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
ENV PYTHON_BIN python3
|
|
|
|
RUN \
|
|
apt-get update && \
|
|
echo "**** install runtime packages ****" && \
|
|
apt-get install -y --no-install-recommends \
|
|
libcairo2 \
|
|
libjpeg62-turbo \
|
|
python-lxml \
|
|
&& \
|
|
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/*
|
|
|
|
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]
|