mirror of
https://github.com/exzork/gc-tools.git
synced 2024-11-22 07:08:12 +00:00
12 lines
287 B
Docker
12 lines
287 B
Docker
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 .
|
|
ENTRYPOINT ["nginx","-g","daemon off;"] |