Skip to content

Commit 6ab2a52

Browse files
committed
feat(collab): support for docker builds
1 parent 52d6fe8 commit 6ab2a52

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM python:3.12-slim AS base
2+
3+
## Recommended environment variables for Python
4+
ENV PYTHONUNBUFFERED=1 \
5+
PYTHONDONTWRITEBYTECODE=1 \
6+
PIP_NO_CACHE_DIR=1
7+
8+
WORKDIR /app
9+
10+
COPY requirements.txt .
11+
12+
RUN pip install --upgrade pip && \
13+
pip install --no-cache-dir -r requirements.txt
14+
15+
COPY . .
16+
17+
# Expose the FastAPI port
18+
EXPOSE 8000
19+
20+
# Run FastAPI with Uvicorn
21+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

services/collaboration-service/app/schemas/__init__.py

Whitespace-only changes.

services/collaboration-service/app/ws/__init__.py

Whitespace-only changes.

services/collaboration-service/main.py

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fastapi
2+
uvicorn[standard]
3+
pydantic

0 commit comments

Comments
 (0)