front-hub/Dockerfile

17 lines
409 B
Docker
Raw Normal View History

FROM node:19.1-alpine as build
2022-12-03 20:46:27 +00:00
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
COPY package.json .
COPY tsconfig.json .
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
COPY . .
RUN yarn build
FROM nginx:latest as result
2023-05-07 12:54:40 +00:00
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/app/build/ /usr/share/nginx/html
2023-05-07 12:54:40 +00:00
COPY hub.conf /etc/nginx/conf.d/default.conf