fix: 🐛 修正构建脚本 #12

Merged
shr merged 1 commits from cicd into master 2023-03-14 14:39:39 +08:00
2 changed files with 11 additions and 8 deletions
Showing only changes of commit 8dc73bd098 - Show all commits

View File

@ -1,7 +1,6 @@
.vscode/
.idea/
node_modules/
dist/
**/*.log
LICENSE
README.md

View File

@ -1,10 +1,14 @@
FROM node:12 AS builder
WORKDIR /app
ADD package.json /app/
RUN npm config set registry https://registry.npmmirror.com && npm install
ADD . /app
RUN npm run build
#FROM node:12 AS builder
#WORKDIR /app
#ADD package.json /app/
#RUN npm config set registry https://registry.npmmirror.com && npm install
#ADD . /app
#RUN npm run build
#
#FROM busybox
#LABEL maintainer thomas.hairong@gmail.com
#COPY --from=builder /app/dist /html
FROM busybox
LABEL maintainer thomas.hairong@gmail.com
COPY --from=builder /app/dist /html
COPY dist/ /html