Refactor VPN proxy client implementation
This commit is contained in:
+6
-7
@@ -1,15 +1,16 @@
|
||||
ARG NODE_BUILD_IMAGE=node:20-alpine
|
||||
ARG NODE_BUILD_IMAGE=node:20.19-alpine
|
||||
ARG RUNTIME_IMAGE=debian:bookworm-slim
|
||||
|
||||
FROM ${NODE_BUILD_IMAGE} AS web-build
|
||||
FROM ${NODE_BUILD_IMAGE} AS build
|
||||
WORKDIR /src
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY index.html vite.config.js ./
|
||||
COPY index.html vite.config.ts tsconfig*.json ./
|
||||
COPY src/web ./src/web
|
||||
COPY src/server ./src/server
|
||||
COPY src/shared ./src/shared
|
||||
COPY monitoring/grafana/harbor-gateway.json ./monitoring/grafana/harbor-gateway.json
|
||||
RUN npm run build
|
||||
RUN npm run build:production
|
||||
|
||||
FROM ${RUNTIME_IMAGE}
|
||||
ARG SINGBOX_VERSION=1.12.13
|
||||
@@ -32,10 +33,8 @@ RUN set -eux; \
|
||||
rm -rf /tmp/sing-box*
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=web-build /src/dist /app/dist
|
||||
COPY --from=build /src/dist /app/dist
|
||||
COPY package.json /app/package.json
|
||||
COPY src/server /app/src/server
|
||||
COPY src/shared /app/src/shared
|
||||
COPY entrypoint.client.sh /entrypoint.client.sh
|
||||
|
||||
RUN chmod +x /entrypoint.client.sh \
|
||||
|
||||
Reference in New Issue
Block a user