qrm2/Dockerfile

31 lines
740 B
Docker
Raw Normal View History

2021-10-07 02:57:36 -04:00
FROM voidlinux/voidlinux
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 \
2021-10-07 02:57:36 -04:00
echo "**** update packages ****" && \
xbps-install -Suy && \
echo "**** install system packages ****" && \
export runtime_deps='cairo libjpeg-turbo' && \
export runtime_pkgs="${runtime_deps} python3-pip python3" && \
xbps-install -y $runtime_pkgs && \
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-10-07 02:57:36 -04:00
/var/cache/xbps/*
ARG UID
ENV UID=${UID:-1000}
ARG GID
ENV GID=${GID:-1000}
USER $UID:$GID
2019-11-02 16:56:53 -04:00
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]