fix: dev image fails due to the environment being overwritten at runtime

This commit is contained in:
Herculino Trotta
2025-12-26 10:30:22 -03:00
parent a4c7753f69
commit d17b9d5736
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ volumes:
wygiwyh_dev_postgres_data: {}
wygiwyh_temp:
services:
web:
build:

View File

@@ -8,7 +8,8 @@ WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy
UV_LINK_MODE=copy \
UV_PROJECT_ENVIRONMENT=/opt/venv
RUN apt-get update && \
apt-get install --no-install-recommends -y gettext supervisor && \
@@ -30,7 +31,7 @@ RUN sed -i 's/\r$//g' /start && \
sed -i 's/\r$//g' /start-supervisor && \
chmod +x /start-supervisor
ENV PATH="/usr/src/app/.venv/bin:$PATH"
ENV PATH="/opt/venv/bin:$PATH"
COPY ./app .