Fix Docker deployment: Remove .env file copy from Dockerfile

- Removed COPY .env ./.env from Dockerfile to prevent environment variable conflicts
- Docker-compose.yml environment variables will now take precedence
- Entry point script uses correct service names for database connectivity
This commit is contained in:
2026-08-25 03:57:37 +00:00
parent 30b6a3d803
commit 125ebc4d11
+1 -2
View File
@@ -54,8 +54,7 @@ COPY --chown=appuser:appuser alembic/ ./alembic/
COPY --chown=appuser:appuser scripts/ ./scripts/ COPY --chown=appuser:appuser scripts/ ./scripts/
RUN chmod +x /app/scripts/*.py /app/scripts/docker-entrypoint.sh RUN chmod +x /app/scripts/*.py /app/scripts/docker-entrypoint.sh
# Copy environment files # Copy environment example (not the actual .env)
COPY --chown=appuser:appuser .env ./.env
COPY --chown=appuser:appuser .env.example ./.env.example COPY --chown=appuser:appuser .env.example ./.env.example
COPY --chown=appuser:appuser pyproject.toml ./ COPY --chown=appuser:appuser pyproject.toml ./