Compare commits
2 Commits
523a9d9767
...
a7b39f3ce1
Author | SHA1 | Date | |
---|---|---|---|
a7b39f3ce1 | |||
8dc73bd098 |
@ -1,7 +1,6 @@
|
||||
.vscode/
|
||||
.idea/
|
||||
node_modules/
|
||||
dist/
|
||||
**/*.log
|
||||
LICENSE
|
||||
README.md
|
||||
|
18
Dockerfile
18
Dockerfile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user