Add Docker and CI stuff

This commit is contained in:
Late Night Defender 2023-09-24 18:36:06 +07:00
parent f1f614d4e7
commit 95d28e5952
2 changed files with 37 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM nginx:alpine
# Set up environment for building
RUN apk add yarn nodejs
# Copy files to build environment
RUN mkdir /opt/ll-backend
RUN cp /home/sasha/Data1/Apps/ll-backend/.env /opt/ll-backend
COPY . /opt/ll-backend
# Run Vite production build
WORKDIR /opt/ll-backend
RUN yarn
CMD yarn run start