moving v2 to top level

This commit is contained in:
2024-12-17 09:19:21 -07:00
parent 5f0b3554dc
commit 576ee02afb
468 changed files with 79 additions and 15430 deletions

32
Dockerfile Normal file
View 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" ]