fix: add HTTP to HTTPS redirect and fix CMS Dockerfile
- Add HTTP router and redirect middleware for Let's Encrypt challenges - Fix CMS Dockerfile to copy config from source (not dist) - Add favicon.png to CMS container - Enable automatic HTTPS redirect for all services
This commit is contained in:
1 parent
2efdf20f88
commit
0ef26ba2f1
2 files changed
+29
-1
No files matched your search
+2
-1
@@ -31,10 +31,11 @@ RUN addgroup -g 1001 -S nodejs && \
|
||||
|
||||
# Copy built application from builder stage
|
||||
COPY --from=builder --chown=nodejs:nodejs /app/dist ./dist
|
||||
COPY --from=builder --chown=nodejs:nodejs /app/config ./config
|
||||
COPY --from=builder --chown=nodejs:nodejs /app/public ./public
|
||||
COPY --from=builder --chown=nodejs:nodejs /app/favicon.png ./favicon.png
|
||||
COPY --from=builder --chown=nodejs:nodejs /app/node_modules ./node_modules
|
||||
COPY --from=builder --chown=nodejs:nodejs /app/package*.json ./
|
||||
COPY --from=builder --chown=nodejs:nodejs /app/dist/config ./config
|
||||
|
||||
# Create data and database directories with proper permissions
|
||||
RUN mkdir -p /app/.tmp /app/database /app/uploads /app/database/migrations && \
|
||||
|
||||
Reference in new issue
Block a user