mirror of
https://github.com/miaowware/qrm2.git
synced 2025-04-21 18:58:46 -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
|
||||
WORKDIR /app
|
||||
|
||||
ARG REPOSITORY=https://repo-fastly.voidlinux.org/current
|
||||
ARG PKGS="cairo libjpeg-turbo"
|
||||
ARG PKGS="cairo libjpeg-turbo libgcc"
|
||||
ARG UID 1000
|
||||
ARG GID 1000
|
||||
|
||||
@ -13,9 +13,9 @@ RUN \
|
||||
xbps-install -Suy xbps -R ${REPOSITORY} && \
|
||||
xbps-install -uy -R ${REPOSITORY} && \
|
||||
echo "**** install system packages ****" && \
|
||||
xbps-install -y -R ${REPOSITORY} ${PKGS} python3.11 && \
|
||||
xbps-install -y -R ${REPOSITORY} ${PKGS} python3 && \
|
||||
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 -r requirements.txt && \
|
||||
echo "**** clean up ****" && \
|
||||
@ -24,7 +24,7 @@ RUN \
|
||||
/tmp/* \
|
||||
/var/cache/xbps/*
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
USER $UID:$GID
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user