add webapp, move frontend to webapp folder

This commit is contained in:
2025-04-15 15:33:08 -04:00
parent f97b3b5185
commit 196063c23b
93 changed files with 2162 additions and 0 deletions

17
webapp/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:lts-alpine3.17
# add project files to /app
ADD ./webapp /app
ADD ./prisma /app/prisma
ADD ./protos /app/protos
WORKDIR /app
# build frontend
RUN mkdir public/ && cd frontend && rm -rf dist && npm install && npm run build && cp -r dist/* /app/public && rm -rf /app/frontend
# install node dependencies
RUN npm install && npx prisma generate
EXPOSE 8080
ENTRYPOINT ["node", "index.js"]