Update Dockerfile and README

This commit is contained in:
Late Night Defender 2023-11-12 17:20:24 +07:00
parent 8e6f0b1d10
commit b9918347c1
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
FROM alpine FROM docker.io/library/alpine:latest
# Set up environment for building # Set up environment for building
RUN apk add yarn nodejs RUN apk add yarn nodejs
@ -7,10 +7,9 @@ RUN apk add yarn nodejs
RUN mkdir /opt/little-lines-frontend RUN mkdir /opt/little-lines-frontend
COPY . /opt/little-lines-frontend COPY . /opt/little-lines-frontend
# Run Vite production build # Start the app
WORKDIR /opt/little-lines-frontend WORKDIR /opt/little-lines-frontend
RUN yarn RUN yarn
CMD yarn dev --host CMD yarn dev --host
# Copy files to nginx path
#RUN cp -r dist/* icons /usr/share/nginx/html

View file

@ -9,6 +9,9 @@
<a href="https://gitlab.com/openKMITL/micromobility-navigation/-/pipelines"> <a href="https://gitlab.com/openKMITL/micromobility-navigation/-/pipelines">
<img alt="Build Status" src="https://gitlab.com/openkmitl/micromobility-navigation/badges/main/pipeline.svg"> <img alt="Build Status" src="https://gitlab.com/openkmitl/micromobility-navigation/badges/main/pipeline.svg">
</a> </a>
<img alt="Service Status" src=" https://status.techtransthai.org/api/badge/7/status">
</a>