mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-16 00:14:23 +02:00
update the docker build for pnpm
This commit is contained in:
+4
-3
@@ -4,11 +4,12 @@ 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