fix dockerfile

This commit is contained in:
Matteo Rosati
2026-01-20 11:32:43 +01:00
parent 3fabcaac07
commit a8d25aa7fe

View File

@@ -39,9 +39,6 @@ RUN apk add --no-cache \
RUN addgroup -g 1000 appuser && \ RUN addgroup -g 1000 appuser && \
adduser -D -u 1000 -G appuser appuser adduser -D -u 1000 -G appuser appuser
# Copy credentials file if it exists
COPY --chown=appuser:appuser credentials.json .
# Copy virtual environment from builder # Copy virtual environment from builder
COPY --from=builder /opt/venv /opt/venv COPY --from=builder /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH" ENV PATH="/opt/venv/bin:$PATH"
@@ -55,6 +52,7 @@ WORKDIR /app
# Copy application files # Copy application files
COPY --chown=appuser:appuser app.py . COPY --chown=appuser:appuser app.py .
COPY --chown=appuser:appuser main.py . COPY --chown=appuser:appuser main.py .
COPY --chown=appuser:appuser credentials.json .
COPY --chown=appuser:appuser static ./static COPY --chown=appuser:appuser static ./static
# Copy and setup entrypoint script # Copy and setup entrypoint script