frontend/Dockerfile

17 lines
337 B
Text
Raw Normal View History

2023-11-12 09:42:46 +00:00
FROM alpine
2023-07-19 19:55:16 +00:00
# Set up environment for building
2023-07-19 20:23:59 +00:00
RUN apk add yarn nodejs
2023-07-19 19:55:16 +00:00
2023-07-19 20:23:59 +00:00
# Copy files to build environment
2023-11-12 09:42:46 +00:00
RUN mkdir /opt/little-lines-frontend
COPY . /opt/little-lines-frontend
2023-07-19 19:55:16 +00:00
2023-07-19 20:23:59 +00:00
# Run Vite production build
2023-11-12 09:42:46 +00:00
WORKDIR /opt/little-lines-frontend
2023-07-19 19:55:16 +00:00
RUN yarn
2023-11-12 09:42:46 +00:00
CMD yarn dev
2023-07-19 20:23:59 +00:00
# Copy files to nginx path
2023-11-12 09:42:46 +00:00
#RUN cp -r dist/* icons /usr/share/nginx/html