mirror of
https://github.com/fatedier/frp.git
synced 2026-10-16 00:25:57 +08:00
Merge pull request #5569 from fatedier/fix/docker-workspace-lockfile
fix(docker): install web dependencies from the workspace lockfile
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
FROM node:22 AS web-builder
|
||||
|
||||
COPY web/package.json /web/package.json
|
||||
COPY web/shared/ /web/shared/
|
||||
COPY web/frpc/ /web/frpc/
|
||||
WORKDIR /web
|
||||
RUN npm install
|
||||
WORKDIR /web/frpc
|
||||
RUN npm run build
|
||||
COPY web/package.json web/package-lock.json ./
|
||||
COPY web/shared/package.json ./shared/package.json
|
||||
COPY web/frpc/package.json ./frpc/package.json
|
||||
COPY web/frps/package.json ./frps/package.json
|
||||
RUN npm ci
|
||||
COPY web/shared/ ./shared/
|
||||
COPY web/frpc/ ./frpc/
|
||||
RUN npm run build --workspace frpc
|
||||
|
||||
FROM golang:1.26 AS building
|
||||
|
||||
|
||||
Reference in New Issue
Block a user