Chore: Add comment to Dockerfile.prod flagging explicit directory list
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,7 @@ RUN groupadd --system --gid 1001 appgroup \
|
|||||||
&& useradd --system --uid 1001 --gid 1001 --no-create-home appuser
|
&& useradd --system --uid 1001 --gid 1001 --no-create-home appuser
|
||||||
|
|
||||||
COPY --from=builder --chown=appuser:appgroup /app/.venv /app/.venv
|
COPY --from=builder --chown=appuser:appgroup /app/.venv /app/.venv
|
||||||
|
# Explicitly list every source directory — add new top-level dirs here or they won't exist in prod
|
||||||
COPY --chown=appuser:appgroup app/ ./app/
|
COPY --chown=appuser:appgroup app/ ./app/
|
||||||
COPY --chown=appuser:appgroup alembic/ ./alembic/
|
COPY --chown=appuser:appgroup alembic/ ./alembic/
|
||||||
COPY --chown=appuser:appgroup alembic.ini .
|
COPY --chown=appuser:appgroup alembic.ini .
|
||||||
|
|||||||
Reference in New Issue
Block a user