ci: Frontend routing

This commit is contained in:
Tibo De Peuter 2025-03-11 13:50:55 +01:00
parent edccf4ef62
commit 0053279dc3
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
11 changed files with 248 additions and 960 deletions

35
backend/Dockerfile Normal file
View file

@ -0,0 +1,35 @@
FROM node:22 AS build-stage
WORKDIR /app
# Install dependencies
COPY package*.json ./
COPY backend/package.json ./backend/
RUN npm install --silent
# Build the backend
# Root tsconfig.json
COPY tsconfig.json ./
WORKDIR /app/backend
COPY backend ./
RUN npm run build
FROM node:22 AS production-stage
WORKDIR /app
COPY package-lock.json backend/package.json ./
RUN npm install --silent --only=production
COPY --from=build-stage /app/backend/dist ./dist/
EXPOSE 3000
CMD ["node", "--env-file=.env", "dist/app.js"]