2021-03-17 23:10:57 -04:00
|
|
|
FROM python:3.9-slim
|
2019-11-02 16:56:53 -04:00
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2019-11-04 12:17:59 -05:00
|
|
|
ENV PYTHON_BIN python3
|
2019-11-02 16:56:53 -04:00
|
|
|
|
|
|
|
RUN \
|
2021-03-17 23:10:57 -04:00
|
|
|
apt-get update && \
|
2019-11-02 16:56:53 -04:00
|
|
|
echo "**** install runtime packages ****" && \
|
2021-03-17 23:10:57 -04:00
|
|
|
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/* \
|
2021-03-17 23:10:57 -04:00
|
|
|
/var/lib/apt/lists/*
|
2019-11-02 16:56:53 -04:00
|
|
|
|
2019-11-04 12:17:59 -05:00
|
|
|
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]
|