mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
update the docker build for pnpm
This commit is contained in:
+6
-5
@@ -2,13 +2,14 @@
|
|||||||
FROM node:18-alpine as builder
|
FROM node:18-alpine as builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
#Copy package.json first to cache node_modules
|
# Copy package.json first to cache node_modules
|
||||||
COPY package.json package-lock.json .
|
COPY package.json package-lock.json .
|
||||||
# Scripts include electron-specific dependencies, which we don't need
|
|
||||||
RUN npm install --legacy-peer-deps --ignore-scripts
|
RUN pnpm install
|
||||||
#Copy code and build with cached modules
|
|
||||||
|
# Copy code and build with cached modules
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build:web
|
RUN pnpm run build:web
|
||||||
|
|
||||||
# --- Production stage
|
# --- Production stage
|
||||||
FROM nginx:alpine-slim
|
FROM nginx:alpine-slim
|
||||||
|
|||||||
Reference in New Issue
Block a user