mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
docker: copy shared web directory for npm workspace builds
This commit is contained in:
parent
60c4f5d4bd
commit
5ed02275da
2 changed files with 10 additions and 4 deletions
|
|
@ -1,8 +1,11 @@
|
|||
FROM node:22 AS web-builder
|
||||
|
||||
WORKDIR /web/frpc
|
||||
COPY web/frpc/ ./
|
||||
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
|
||||
|
||||
FROM golang:1.25 AS building
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
FROM node:22 AS web-builder
|
||||
|
||||
WORKDIR /web/frps
|
||||
COPY web/frps/ ./
|
||||
COPY web/package.json /web/package.json
|
||||
COPY web/shared/ /web/shared/
|
||||
COPY web/frps/ /web/frps/
|
||||
WORKDIR /web
|
||||
RUN npm install
|
||||
WORKDIR /web/frps
|
||||
RUN npm run build
|
||||
|
||||
FROM golang:1.25 AS building
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue