feat: rebuild email platform and operations console
This commit is contained in:
+13
-12
@@ -1,19 +1,20 @@
|
||||
FROM node:20-alpine
|
||||
FROM node:22-alpine AS builder
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
RUN corepack enable && corepack prepare pnpm@11.3.0 --activate
|
||||
|
||||
# Copy package.json and package-lock.json
|
||||
COPY package*.json ./
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy all other files
|
||||
COPY . .
|
||||
RUN pnpm build
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
# Run the app
|
||||
CMD ["npm", "run", "serve"]
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=3s --retries=5 \
|
||||
CMD wget -q -O /dev/null http://127.0.0.1/ || exit 1
|
||||
|
||||
Reference in New Issue
Block a user