added docker files for deployment

This commit is contained in:
2024-09-22 09:01:24 +02:00
parent acaedfe8c7
commit b2a49ca9f7
9 changed files with 19640 additions and 4362 deletions

20
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:18 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
# Copy the rest of the source code
COPY . .
RUN npm run build-only
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 5001
CMD ["nginx", "-g", "daemon off;"]