gc-tools/Dockerfile

13 lines
334 B
Docker
Raw Normal View History

2022-04-30 08:16:13 +00:00
FROM node:18-alpine as builder
WORKDIR /app
COPY package.json package.json
COPY yarn.lock yarn.lock
RUN yarn install --production
COPY . .
RUN yarn build
FROM nginx:alpine
WORKDIR /usr/share/nginx/html
RUN rm -rf *
COPY --from=builder /app/build .
2022-04-30 08:33:30 +00:00
COPY nginx.conf /etc/nginx/conf.d/default.conf
2022-04-30 08:16:13 +00:00
ENTRYPOINT ["nginx","-g","daemon off;"]