fix: update Dockerfile to copy application code after source files and mark subproject as dirty
This commit is contained in:
parent
26d78431e3
commit
cfc7439629
2 changed files with 4 additions and 5 deletions
|
|
@ -41,9 +41,6 @@ unraid.xml
|
|||
# Node modules (handled separately in multi-stage build)
|
||||
node_modules/
|
||||
|
||||
# App directory (copied from builder with compiled translations)
|
||||
app/
|
||||
|
||||
# Built assets (external dependencies will be built in container)
|
||||
app/static/css/main.css
|
||||
app/static/js/sortable.min.js
|
||||
|
|
|
|||
|
|
@ -59,10 +59,12 @@ WORKDIR /app
|
|||
# Copy Python environment from builder stage (includes project)
|
||||
COPY --chown=1000:1000 --from=builder /app/.venv /app/.venv
|
||||
|
||||
# Copy application code and built assets
|
||||
COPY --chown=1000:1000 --from=builder /app/app /app/app
|
||||
# Copy source files first (run.py, gunicorn.conf.py, migrations/, etc.)
|
||||
COPY --chown=1000:1000 . /app
|
||||
|
||||
# Then overwrite app/ with built version (has compiled translations)
|
||||
COPY --chown=1000:1000 --from=builder /app/app /app/app
|
||||
|
||||
# Create data directory for database (backward compatibility)
|
||||
RUN mkdir -p /data/database
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue