mirror of
https://github.com/miaowware/qrm2.git
synced 2025-08-01 12:52:27 -04:00
Dockerfile: update
- use python3 (no need to stay on python3.11 still) - switch to glibc (musl wheels need musl 1.2) - add libgcc (needed by pydantic (thanks rust!))
This commit is contained in:
parent
fbe64df14d
commit
cb76b548ed
10
Dockerfile
10
Dockerfile
@ -1,10 +1,10 @@
|
|||||||
FROM ghcr.io/void-linux/void-musl-full
|
FROM ghcr.io/void-linux/void-glibc-full
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ARG REPOSITORY=https://repo-fastly.voidlinux.org/current
|
ARG REPOSITORY=https://repo-fastly.voidlinux.org/current
|
||||||
ARG PKGS="cairo libjpeg-turbo"
|
ARG PKGS="cairo libjpeg-turbo libgcc"
|
||||||
ARG UID 1000
|
ARG UID 1000
|
||||||
ARG GID 1000
|
ARG GID 1000
|
||||||
|
|
||||||
@ -13,9 +13,9 @@ 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.11 && \
|
xbps-install -y -R ${REPOSITORY} ${PKGS} python3 && \
|
||||||
echo "**** install pip packages ****" && \
|
echo "**** install pip packages ****" && \
|
||||||
python3.11 -m venv botenv && \
|
python3 -m venv botenv && \
|
||||||
botenv/bin/pip install -U pip setuptools wheel && \
|
botenv/bin/pip install -U pip setuptools wheel && \
|
||||||
botenv/bin/pip install -r requirements.txt && \
|
botenv/bin/pip install -r requirements.txt && \
|
||||||
echo "**** clean up ****" && \
|
echo "**** clean up ****" && \
|
||||||
@ -24,7 +24,7 @@ RUN \
|
|||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/cache/xbps/*
|
/var/cache/xbps/*
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
USER $UID:$GID
|
USER $UID:$GID
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user