mirror of
https://github.com/kyantech/Palmr.git
synced 2025-11-02 21:13:17 +00:00
Update the base Node.js image from version 18 to 22-alpine in both web and server Dockerfiles to leverage the latest features and security patches. Additionally, update the @prisma/client dependency to version 6.4.1 in the server package.json and pnpm-lock.yaml to ensure compatibility and stability.
27 lines
389 B
Docker
27 lines
389 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app/server
|
|
|
|
RUN apk add --no-cache netcat-openbsd
|
|
RUN npm install -g pnpm
|
|
|
|
COPY package*.json ./
|
|
COPY pnpm-lock.yaml ./
|
|
COPY prisma ./prisma/
|
|
COPY scripts ./scripts/
|
|
|
|
RUN rm -rf node_modules/.prisma
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
RUN npx prisma generate
|
|
|
|
COPY . .
|
|
|
|
RUN pnpm build
|
|
RUN chmod +x ./scripts/start.sh
|
|
|
|
EXPOSE 3333
|
|
|
|
CMD ["./scripts/start.sh"]
|