mirror of
https://github.com/veops/oneterm.git
synced 2025-10-17 21:01:56 +08:00
10 lines
297 B
Docker
10 lines
297 B
Docker
FROM node:16.20.0-alpine AS builder
|
|
WORKDIR /oneterm-ui
|
|
COPY . .
|
|
RUN yarn config set registry https://registry.npmmirror.com/
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=0 /oneterm-ui/dist /etc/nginx/html
|
|
RUN mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.bak |