12-23-上传master
This commit is contained in:
27
Dockerfile.hub
Normal file
27
Dockerfile.hub
Normal file
@ -0,0 +1,27 @@
|
||||
FROM circleci/node:latest-browsers as builder
|
||||
|
||||
WORKDIR /usr/src/app/
|
||||
USER root
|
||||
COPY package.json ./
|
||||
RUN yarn
|
||||
|
||||
COPY ./ ./
|
||||
|
||||
RUN npm run test:all
|
||||
|
||||
RUN npm run fetch:blocks
|
||||
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM nginx
|
||||
|
||||
WORKDIR /usr/share/nginx/html/
|
||||
|
||||
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html/
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user