qrm2/Dockerfile

32 lines
818 B
Docker
Raw Normal View History

FROM ghcr.io/void-linux/void-musl-full
2019-11-02 16:56:53 -04:00
COPY . /app
WORKDIR /app
ARG REPOSITORY=https://repo-fastly.voidlinux.org/current
ARG PKGS="cairo libjpeg-turbo"
ARG UID 1000
ARG GID 1000
2019-11-02 16:56:53 -04:00
RUN \
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 ****" && \
xbps-install -y -R ${REPOSITORY} ${PKGS} python3.11 && \
2019-11-02 16:56:53 -04:00
echo "**** install pip packages ****" && \
python3.11 -m venv botenv && \
botenv/bin/pip install -U pip setuptools wheel && \
botenv/bin/pip install -r requirements.txt && \
2019-11-02 16:56:53 -04:00
echo "**** clean up ****" && \
rm -rf \
/root/.cache \
/tmp/* \
2021-10-07 02:57:36 -04:00
/var/cache/xbps/*
ENV PYTHONUNBUFFERED 1
2021-10-07 02:57:36 -04:00
USER $UID:$GID
2019-11-02 16:56:53 -04:00
CMD ["/bin/sh", "run.sh", "--pass-errors"]