add frontend project and docker containers

This commit is contained in:
lauchmelder 2025-03-05 13:47:59 +01:00
parent ae8525b891
commit 00a78f33b6
36 changed files with 3729 additions and 61 deletions

15
client/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM node:18 AS dependencies
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
# image for development
FROM dependencies AS dev
CMD ["npm", "run", "dev", "--" ,"--port", "3000", "--host", "0.0.0.0"]
FROM dependencies AS build
COPY . ./
RUN npm run build -- --mode production
CMD [ "node", "/app" ]