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
+1 -1
View File
@@ -24,7 +24,7 @@ dependencies = [
"gonk==0.6.1",
"ipython==8.16.1",
"Pillow==11.0.0",
"psycopg2-binary==2.9.10",
"psycopg==3.3.3",
"pyDes==2.0.1",
"redis==4.5.4",
"requests==2.32.4",
+2 -2
View File
@@ -9,9 +9,9 @@ RUN_SERVER=${RUN_SERVER:="FALSE"}
RUN_CELERY=${RUN_CELERY:="FALSE"}
if [ $RUN_SERVER = "TRUE" ]; then
uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application
python -m uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application
elif [ $RUN_CELERY = "TRUE" ]; then
celery -A config worker
python -m celery -A config worker
else
echo "You have to set RUN_CELERY or RUN_SERVER to TRUE"
echo "Exiting"