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:
+1
-2
@@ -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 ./
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user