fix: 🐛 修正构建脚本
This commit is contained in:
parent
523a9d9767
commit
8dc73bd098
@ -1,7 +1,6 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
|
||||||
**/*.log
|
**/*.log
|
||||||
LICENSE
|
LICENSE
|
||||||
README.md
|
README.md
|
||||||
|
18
Dockerfile
18
Dockerfile
@ -1,10 +1,14 @@
|
|||||||
FROM node:12 AS builder
|
#FROM node:12 AS builder
|
||||||
WORKDIR /app
|
#WORKDIR /app
|
||||||
ADD package.json /app/
|
#ADD package.json /app/
|
||||||
RUN npm config set registry https://registry.npmmirror.com && npm install
|
#RUN npm config set registry https://registry.npmmirror.com && npm install
|
||||||
ADD . /app
|
#ADD . /app
|
||||||
RUN npm run build
|
#RUN npm run build
|
||||||
|
#
|
||||||
|
#FROM busybox
|
||||||
|
#LABEL maintainer thomas.hairong@gmail.com
|
||||||
|
#COPY --from=builder /app/dist /html
|
||||||
|
|
||||||
FROM busybox
|
FROM busybox
|
||||||
LABEL maintainer thomas.hairong@gmail.com
|
LABEL maintainer thomas.hairong@gmail.com
|
||||||
COPY --from=builder /app/dist /html
|
COPY dist/ /html
|
||||||
|
Loading…
Reference in New Issue
Block a user