mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-22 15:58:40 -05:00
4139b23fe6
fixes #336
41 lines
924 B
Docker
41 lines
924 B
Docker
FROM alpine:3.10
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
ENV PYTHON_BIN python3
|
|
|
|
RUN \
|
|
echo "**** install build packages ****" && \
|
|
apk add --no-cache --virtual=build-dependencies \
|
|
g++ \
|
|
git \
|
|
gcc \
|
|
libxml2-dev \
|
|
libxslt-dev \
|
|
libressl-dev \
|
|
libffi-dev \
|
|
jpeg-dev \
|
|
zlib-dev \
|
|
python3-dev && \
|
|
echo "**** install runtime packages ****" && \
|
|
apk add --no-cache \
|
|
libressl \
|
|
cairo \
|
|
libjpeg-turbo \
|
|
py3-lxml \
|
|
py3-pip \
|
|
python3 && \
|
|
echo "**** install pip packages ****" && \
|
|
pip3 install -U pip setuptools wheel && \
|
|
pip3 install -r requirements.txt && \
|
|
echo "**** clean up ****" && \
|
|
apk del --purge \
|
|
build-dependencies && \
|
|
rm -rf \
|
|
/root/.cache \
|
|
/tmp/* \
|
|
/var/cache/apk/*
|
|
|
|
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]
|