standardize port mapping to 8080 across all Docker configurations
This commit is contained in:
29
Dockerfile
29
Dockerfile
@@ -18,4 +18,33 @@ COPY --chown=nginx:nginx --from=builder /app/dist /usr/share/nginx/html
|
|||||||
COPY --chown=nginx:nginx nginx.conf /etc/nginx/nginx.conf
|
COPY --chown=nginx:nginx nginx.conf /etc/nginx/nginx.conf
|
||||||
RUN mkdir -p /etc/nginx/tmp && chown -R nginx:nginx /etc/nginx/tmp
|
RUN mkdir -p /etc/nginx/tmp && chown -R nginx:nginx /etc/nginx/tmp
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
|
|
||||||
|
# Old Dockerfile for Root User
|
||||||
|
# # Build stage
|
||||||
|
# FROM node:20-alpine AS builder
|
||||||
|
|
||||||
|
# WORKDIR /app
|
||||||
|
|
||||||
|
# COPY package*.json ./
|
||||||
|
# RUN npm ci
|
||||||
|
|
||||||
|
# COPY . .
|
||||||
|
|
||||||
|
# # Build without type checking (vite build only)
|
||||||
|
# # Pass SIMPLE_MODE environment variable if provided
|
||||||
|
# ARG SIMPLE_MODE=false
|
||||||
|
# ENV SIMPLE_MODE=$SIMPLE_MODE
|
||||||
|
# RUN npm run build -- --mode production
|
||||||
|
|
||||||
|
# # Production stage
|
||||||
|
# FROM nginx:alpine
|
||||||
|
|
||||||
|
# COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
|
# COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
# EXPOSE 8080
|
||||||
|
|
||||||
|
# CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ services:
|
|||||||
SIMPLE_MODE: false # false for default mode, true for simple mode
|
SIMPLE_MODE: false # false for default mode, true for simple mode
|
||||||
container_name: bentopdf
|
container_name: bentopdf
|
||||||
ports:
|
ports:
|
||||||
- '3000:8080'
|
- '8080:8080'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ services:
|
|||||||
container_name: bentopdf
|
container_name: bentopdf
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- '3000:8080'
|
- '8080:8080'
|
||||||
|
|||||||
Reference in New Issue
Block a user