-
This commit is contained in:
@ -44,9 +44,13 @@ COPY --from=builder /app/api-key-service /app/api-key-service
|
||||
# Copy migration files
|
||||
COPY --from=builder /app/migrations /app/migrations
|
||||
|
||||
# Copy template files
|
||||
COPY --from=builder /app/templates /app/templates
|
||||
|
||||
# Change ownership to non-root user
|
||||
RUN chown -R appuser:appgroup /app && \
|
||||
chmod -R 755 /app/migrations
|
||||
chmod -R 755 /app/migrations && \
|
||||
chmod -R 755 /app/templates
|
||||
|
||||
# Switch to non-root user
|
||||
USER appuser
|
||||
|
||||
Reference in New Issue
Block a user