frontend/Dockerfile
2023-07-20 03:23:59 +07:00

16 lines
375 B
Docker

FROM nginx:alpine
# Set up environment for building
RUN apk add yarn nodejs
# Copy files to build environment
RUN mkdir /opt/micromobility-navigation
COPY micromobility-navigation/ /opt/micromobility-navigation
# Run Vite production build
WORKDIR /opt/micromobility-navigation
RUN yarn
RUN yarn run build
# Copy files to nginx path
RUN cp -r dist/* /usr/share/nginx/html