feat: Added docker to the frontend and backend (updated README follows soon)

This commit is contained in:
Auke Steenman 2025-07-21 19:12:23 +02:00
parent e2be5ea5b8
commit edc58e225b
5 changed files with 101 additions and 0 deletions

28
.dockerignore Normal file

@ -0,0 +1,28 @@
node_modules
.pnpm
npm-debug.log
.env
.dockerignore # keep this file
.git
.gitignore
.vscode/
.idea/
*.sublime-project
*.sublime-workspace
dist/
build/
tmp/
temp/
*.log
*.zip
*.tar
*.gz
tests/
docs/
.DS_Store
Thumbs.db
__pycache__/
*.pyc
target/
*.class
fusero-backend/node_modules

11
Dockerfile Normal file

@ -0,0 +1,11 @@
FROM node:24-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install -g pnpm
RUN pnpm install
COPY . .
EXPOSE 5173
CMD ["pnpm", "run", "dev"]

24
docker-compose.yml Normal file

@ -0,0 +1,24 @@
services:
frontend:
build:
context: .
dockerfile: Dockerfile
ports:
- '5000:5173'
volumes:
- .:/app
- /app/node_modules
environment:
- PORT=5173
backend:
build:
context: ./fusero-backend
dockerfile: Dockerfile
ports:
- '3001:3001'
volumes:
- ./fusero-backend:/app/fusero-backend
- /app/fusero-backend/node_modules
environment:
- PORT=3001

@ -0,0 +1,27 @@
node_modules
.pnpm
npm-debug.log
.env
.dockerignore # keep this file
.git
.gitignore
.vscode/
.idea/
*.sublime-project
*.sublime-workspace
dist/
build/
tmp/
temp/
*.log
*.zip
*.tar
*.gz
tests/
docs/
.DS_Store
Thumbs.db
__pycache__/
*.pyc
target/
*.class

11
fusero-backend/Dockerfile Normal file

@ -0,0 +1,11 @@
FROM node:24-alpine
WORKDIR /app/fusero-backend
COPY package*.json ./
RUN npm install -g pnpm
RUN pnpm install
COPY . .
EXPOSE 3001
CMD ["pnpm", "run", "start"]