Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Ignore Python cache files
__pycache__/
*.pyc
*.pyo
*.pyd

# Ignore pytest cache
.pytest_cache/

# Ignore virtual environments
env/
venv/

# Ignore Git repo
.git/
.gitignore

# Ignore Docker-related stuff
Dockerfile
docker-compose.yml

# Ignore MacOS system files
*.DS_Store

13 changes: 13 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
COPY backend/ /app/backend

RUN pip install --no-cache-dir -r requirements.txt

WORKDIR /app/backend

CMD ["uvicorn", "main:app", "--reload"]

16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.8"

services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8000:8000"

frontend:
build: ./frontend
ports:
- "3000:3000"
depends_on:
- backend
11 changes: 11 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:latest

WORKDIR /root

COPY package*.json ./

RUN npm install

COPY . .

CMD ["npm", "start"]