2025-08-23 17:13:08 +08:00
|
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend/package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
COPY frontend/ ./
|
|
|
|
RUN npm run build --prefix frontend
|
|
|
|
|
|
|
|
FROM nginx:stable-alpine
|
|
|
|
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
|
2025-08-23 17:48:52 +08:00
|
|
|
COPY nginx/docker-chat.conf /etc/nginx/conf.d/default.conf
|
2025-08-23 17:13:08 +08:00
|
|
|
EXPOSE 8443
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|