mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-25 09:18:52 -05:00
Dockerfile: use new void container, python3.11
This commit is contained in:
parent
67add85a7a
commit
86da8d135a
15
Dockerfile
15
Dockerfile
@ -1,10 +1,9 @@
|
|||||||
FROM ghcr.io/void-linux/void-linux:latest-full-x86_64-musl
|
FROM ghcr.io/void-linux/void-musl-full
|
||||||
LABEL org.opencontainers.image.source https://github.com/miaowware/qrm2
|
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ARG REPOSITORY=https://repo-us.voidlinux.org/current
|
ARG REPOSITORY=https://repo-fastly.voidlinux.org/current
|
||||||
ARG PKGS="cairo libjpeg-turbo"
|
ARG PKGS="cairo libjpeg-turbo"
|
||||||
ARG UID 1000
|
ARG UID 1000
|
||||||
ARG GID 1000
|
ARG GID 1000
|
||||||
@ -14,19 +13,19 @@ RUN \
|
|||||||
xbps-install -Suy xbps -R ${REPOSITORY} && \
|
xbps-install -Suy xbps -R ${REPOSITORY} && \
|
||||||
xbps-install -uy -R ${REPOSITORY} && \
|
xbps-install -uy -R ${REPOSITORY} && \
|
||||||
echo "**** install system packages ****" && \
|
echo "**** install system packages ****" && \
|
||||||
xbps-install -y -R ${REPOSITORY} ${PKGS} python3 python3-pip && \
|
xbps-install -y -R ${REPOSITORY} ${PKGS} python3.11 && \
|
||||||
echo "**** install pip packages ****" && \
|
echo "**** install pip packages ****" && \
|
||||||
pip3 install -U pip setuptools wheel && \
|
python3.11 -m venv botenv && \
|
||||||
pip3 install -r requirements.txt && \
|
botenv/bin/pip install -U pip setuptools wheel && \
|
||||||
|
botenv/bin/pip install -r requirements.txt && \
|
||||||
echo "**** clean up ****" && \
|
echo "**** clean up ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/root/.cache \
|
/root/.cache \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/cache/xbps/*
|
/var/cache/xbps/*
|
||||||
|
|
||||||
ENV PYTHON_BIN python3
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
USER $UID:$GID
|
USER $UID:$GID
|
||||||
|
|
||||||
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]
|
CMD ["/bin/sh", "run.sh", "--pass-errors"]
|
||||||
|
Loading…
Reference in New Issue
Block a user