mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-13 08:12:51 +02:00
fix: dev image fails due to the environment being overwritten at runtime
This commit is contained in:
@@ -2,6 +2,7 @@ volumes:
|
|||||||
wygiwyh_dev_postgres_data: {}
|
wygiwyh_dev_postgres_data: {}
|
||||||
wygiwyh_temp:
|
wygiwyh_temp:
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ WORKDIR /usr/src/app
|
|||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
UV_COMPILE_BYTECODE=1 \
|
UV_COMPILE_BYTECODE=1 \
|
||||||
UV_LINK_MODE=copy
|
UV_LINK_MODE=copy \
|
||||||
|
UV_PROJECT_ENVIRONMENT=/opt/venv
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install --no-install-recommends -y gettext supervisor && \
|
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 && \
|
sed -i 's/\r$//g' /start-supervisor && \
|
||||||
chmod +x /start-supervisor
|
chmod +x /start-supervisor
|
||||||
|
|
||||||
ENV PATH="/usr/src/app/.venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
|
|
||||||
COPY ./app .
|
COPY ./app .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user