mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 15:18:32 -06:00
moving v2 to top level
This commit is contained in:
32
Dockerfile
Normal file
32
Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM node:22-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g pnpm
|
||||
|
||||
COPY pnpm-lock.yaml ./
|
||||
COPY package.json ./
|
||||
RUN pnpm install
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p storage
|
||||
RUN rm -rf /app/storage/*
|
||||
RUN pnpm run build
|
||||
|
||||
FROM node:22-alpine AS production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g pnpm
|
||||
|
||||
COPY --from=builder /app/pnpm-lock.yaml ./
|
||||
COPY --from=builder /app/package.json ./
|
||||
RUN pnpm install --prod
|
||||
|
||||
COPY --from=builder /app/src/websocket.js ./src/websocket.js
|
||||
COPY --from=builder /app/.next ./.next
|
||||
COPY --from=builder /app/public ./public
|
||||
|
||||
RUN mkdir -p storage && rm -rf /app/storage/*
|
||||
|
||||
CMD [ "pnpm", "run", "start" ]
|
||||
Reference in New Issue
Block a user