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:
classabbyamp 2024-08-10 13:34:19 -04:00
parent fbe64df14d
commit cb76b548ed
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5

View File

@ -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