mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-10 08:14:24 +00:00
Dockerfile improvements
This commit is contained in:
parent
71504b3357
commit
3adc02d768
1 changed files with 8 additions and 6 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,14 +1,16 @@
|
|||
FROM nginx:alpine
|
||||
|
||||
# Set up environment for building
|
||||
RUN apk add git yarn nodejs
|
||||
RUN apk add yarn nodejs
|
||||
|
||||
# Copy files to build environment
|
||||
RUN mkdir /opt/micromobility-navigation
|
||||
COPY micromobility-navigation/ /opt/micromobility-navigation
|
||||
|
||||
WORKDIR /opt
|
||||
RUN git clone https://gitlab.com/openKMITL/micromobility-navigation.git
|
||||
|
||||
|
||||
WORKDIR /opt/micromobility-navigation/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
|
||||
|
|
Loading…
Reference in a new issue