mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
pnpm
This commit is contained in:
@@ -1,25 +1,31 @@
|
|||||||
# Stage 1: Build the application
|
|
||||||
FROM node:22-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
RUN npm install -g pnpm
|
||||||
RUN npm i
|
|
||||||
|
COPY pnpm-lock.yaml ./
|
||||||
|
COPY package.json ./
|
||||||
|
RUN pnpm install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN mkdir -p storage
|
RUN mkdir -p storage
|
||||||
RUN rm -rf /app/storage/*
|
RUN rm -rf /app/storage/*
|
||||||
RUN npm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
FROM node:22-alpine AS production
|
FROM node:22-alpine AS production
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/package*.json ./
|
|
||||||
RUN npm install --omit=dev
|
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/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
RUN mkdir -p storage && rm -rf /app/storage/*
|
RUN mkdir -p storage && rm -rf /app/storage/*
|
||||||
|
|
||||||
CMD [ "npm", "run", "start" ]
|
CMD [ "pnpm", "run", "start" ]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
canvas_manager:
|
canvas_manager:
|
||||||
image: alexmickelson/canvas_management:2
|
image: alexmickelson/canvas_management:2.2
|
||||||
user: "1000:1000"
|
user: "1000:1000"
|
||||||
container_name: canvas-manager-2
|
container_name: canvas-manager-2
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user