front-hub/Dockerfile

15 lines
366 B
Docker
Raw Normal View History

2024-03-27 13:48:28 +00:00
FROM node:20-alpine as build
2022-12-03 20:46:27 +00:00
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
2023-06-19 15:50:12 +00:00
COPY . .
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
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