mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-21 18:36:52 +00:00
16 lines
357 B
Docker
16 lines
357 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 . /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/* icons /usr/share/nginx/html
|