mirror of
https://github.com/fatedier/frp.git
synced 2026-10-15 23:35:58 +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
|
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
|
WORKDIR /web
|
||||||
RUN npm install
|
COPY web/package.json web/package-lock.json ./
|
||||||
WORKDIR /web/frpc
|
COPY web/shared/package.json ./shared/package.json
|
||||||
RUN npm run build
|
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
|
FROM golang:1.26 AS building
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
FROM node:22 AS web-builder
|
FROM node:22 AS web-builder
|
||||||
|
|
||||||
COPY web/package.json /web/package.json
|
|
||||||
COPY web/shared/ /web/shared/
|
|
||||||
COPY web/frps/ /web/frps/
|
|
||||||
WORKDIR /web
|
WORKDIR /web
|
||||||
RUN npm install
|
COPY web/package.json web/package-lock.json ./
|
||||||
WORKDIR /web/frps
|
COPY web/shared/package.json ./shared/package.json
|
||||||
RUN npm run build
|
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/frps/ ./frps/
|
||||||
|
RUN npm run build --workspace frps
|
||||||
|
|
||||||
FROM golang:1.26 AS building
|
FROM golang:1.26 AS building
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user