fix: docker build

This commit is contained in:
2026-03-23 12:47:45 +01:00
parent d7df0d0e50
commit fb6c63deea
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
FROM python:3.13-alpine3.23 as builder
FROM python:3.13-alpine3.23 AS builder
ENV UV_SYSTEM_PYTHON=1
COPY pyproject.toml .
RUN pip install uv && uv pip install -r pyproject.toml
RUN pip install uv && uv pip install -r pyproject.toml && pip uninstall -y uv
FROM python:3.13-alpine3.23
@@ -13,8 +13,8 @@ WORKDIR /code
ARG user=apps
ARG uid=1001
ARG gid=1001
RUN groupadd -g ${gid} ${user}
RUN useradd -u ${uid} -g ${user} -s /bin/sh -m ${user}
RUN addgroup -S ${user} && adduser -S ${user} -G ${user} -u ${uid} -s /bin/sh
RUN apk update && apk add gcc gettext vim libpq-dev
RUN chown -R ${user}:${user} /code