Compare commits
No commits in common. "a7b39f3ce144cb77dfb5972f27b596cb826ce9f4" and "523a9d976761d3ca11bbfce77d28fe0555bae8ee" have entirely different histories.
a7b39f3ce1
...
523a9d9767
@ -1,6 +1,7 @@
|
||||
.vscode/
|
||||
.idea/
|
||||
node_modules/
|
||||
dist/
|
||||
**/*.log
|
||||
LICENSE
|
||||
README.md
|
||||
|
18
Dockerfile
18
Dockerfile
@ -1,14 +1,10 @@
|
||||
#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 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 dist/ /html
|
||||
COPY --from=builder /app/dist /html
|
||||
|
Loading…
Reference in New Issue
Block a user