frontend/Dockerfile

16 lines
337 B
Docker

FROM alpine
# Set up environment for building
RUN apk add yarn nodejs
# Copy files to build environment
RUN mkdir /opt/little-lines-frontend
COPY . /opt/little-lines-frontend
# Run Vite production build
WORKDIR /opt/little-lines-frontend
RUN yarn
CMD yarn dev
# Copy files to nginx path
#RUN cp -r dist/* icons /usr/share/nginx/html