mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
updates
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
FROM node:22-alpine
|
||||
# Stage 1: Build the application
|
||||
FROM node:22-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json .
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm i
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p storage
|
||||
|
||||
RUN rm -rf /app/storage/*
|
||||
|
||||
RUN npm run build
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
||||
FROM node:22-alpine AS production
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/package*.json ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
COPY --from=builder /app/.next ./.next
|
||||
COPY --from=builder /app/public ./public
|
||||
|
||||
RUN mkdir -p storage && rm -rf /app/storage/*
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
||||
|
||||
Reference in New Issue
Block a user