8
0

Merge pull request 'fix: 🐛 修正构建脚本' (#12) from cicd into master
Alle Prüfungen waren erfolgreich
continuous-integration/drone/push Build is passing

Reviewed-on: #12
Dieser Commit ist enthalten in:
施海荣 2023-03-14 14:39:39 +08:00
Commit a7b39f3ce1
2 geänderte Dateien mit 11 neuen und 8 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

@ -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