2022-10-11 18:17:53 -04:00
|
|
|
FROM ghcr.io/void-linux/void-linux:latest-full-x86_64-musl
|
2021-11-05 17:51:46 -04:00
|
|
|
LABEL org.opencontainers.image.source https://github.com/miaowware/qrm2
|
2019-11-02 16:56:53 -04:00
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2021-11-05 17:51:46 -04:00
|
|
|
ARG REPOSITORY=https://repo-us.voidlinux.org/current
|
|
|
|
ARG PKGS="cairo libjpeg-turbo"
|
|
|
|
ARG UID 1000
|
|
|
|
ARG GID 1000
|
2019-11-02 16:56:53 -04:00
|
|
|
|
|
|
|
RUN \
|
2021-11-05 17:51:46 -04:00
|
|
|
echo "**** update system ****" && \
|
2022-10-11 18:17:53 -04:00
|
|
|
xbps-install -Suy xbps -R ${REPOSITORY} && \
|
|
|
|
xbps-install -uy -R ${REPOSITORY} && \
|
2021-10-07 02:57:36 -04:00
|
|
|
echo "**** install system packages ****" && \
|
2022-10-11 18:17:53 -04:00
|
|
|
xbps-install -y -R ${REPOSITORY} ${PKGS} python3 python3-pip && \
|
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/*
|
|
|
|
|
2021-11-05 17:51:46 -04:00
|
|
|
ENV PYTHON_BIN python3
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
2021-10-07 02:57:36 -04:00
|
|
|
USER $UID:$GID
|
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"]
|