BinghamtonBetterBus/BBB_frontend/Dockerfile

18 lines
248 B
Docker

FROM node:latest as build
RUN mkdir -p /work
WORKDIR /work
COPY . .
RUN npm i
RUN npm run build
FROM nginx:1.25-alpine
RUN apk update && apk upgrade
COPY --from=build /work/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf