Commit 3d7cc67d authored by Chong WU's avatar Chong WU Committed by ι™ˆεΈ…

modify docker-hub:build (#4596)

parent 0d29006f
FROM nginx
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 build
FROM nginx
WORKDIR /usr/share/nginx/html/
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY ./dist /usr/share/nginx/html/
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html/
EXPOSE 80
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment