16 lines
420 B
Docker
16 lines
420 B
Docker
FROM node:20.10-alpine3.18 as build
|
|
|
|
RUN apk update && rm -rf /var/cache/apk/*
|
|
WORKDIR /usr/app
|
|
COPY . .
|
|
|
|
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
|
|
RUN yarn build
|
|
|
|
|
|
FROM nginx:latest as result
|
|
WORKDIR /usr/share/nginx/html
|
|
COPY --from=build /usr/app/dist/ /usr/share/nginx/html
|
|
COPY pub.js /usr/share/nginx/html/export/pub.js
|
|
COPY hub.conf /etc/nginx/conf.d/default.conf
|