2019-11-09 01:48:00 -05:00
|
|
|
FROM alpine:3.10
|
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 \
|
|
|
|
echo "**** install build packages ****" && \
|
|
|
|
apk add --no-cache --virtual=build-dependencies \
|
|
|
|
g++ \
|
|
|
|
git \
|
|
|
|
gcc \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
2019-11-04 12:17:59 -05:00
|
|
|
libressl-dev \
|
2019-11-02 16:56:53 -04:00
|
|
|
python3-dev && \
|
|
|
|
echo "**** install runtime packages ****" && \
|
|
|
|
apk add --no-cache \
|
2019-11-04 12:17:59 -05:00
|
|
|
libressl \
|
2019-11-02 16:56:53 -04:00
|
|
|
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/* \
|
2019-11-04 12:17:59 -05:00
|
|
|
/var/cache/apk/*
|
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"]
|