Update Dockerfiles to copy .env file

- Add .env file copy to all Dockerfile variants (dev, local, prod)
- Ensures environment variables are available in containers
- Part of environment configuration centralization
This commit is contained in:
2026-02-01 19:02:49 -05:00
parent ed8b07c27d
commit 3204451a5e
3 changed files with 3 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ ENV MODE="DEVELOPMENT"
WORKDIR /app WORKDIR /app
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
COPY .env .env
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
COPY . . COPY . .

View File

@@ -14,6 +14,7 @@ RUN echo "server pool.ntp.org iburst" >> /etc/chrony/chrony.conf
# Copy and install Python dependencies # Copy and install Python dependencies
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
COPY .env .env
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
# Copy source code # Copy source code

View File

@@ -9,6 +9,7 @@ ENV MODE="PRODUCTION"
WORKDIR /app WORKDIR /app
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
COPY .env .env
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
COPY . . COPY . .