-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
34 lines (23 loc) · 1.12 KB
/
dockerfile
File metadata and controls
34 lines (23 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.11
# Set the working directory inside the container to /app
WORKDIR /app
# Copy the requirements.txt file to the container
COPY requirements.txt .
# Upgrade pip to the latest version
RUN pip install --upgrade pip
# Install pydantic[email] and all other dependencies from the requirements.txt file
RUN pip install pydantic[email]
# Install the dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire backend directory (which includes main.py and other folders) into /app/backend
COPY backend /app/backend
# Copy the ashaaiflow directory (or any other dependent folder) into the container
COPY ashaaiflow /app/ashaaiflow
# Copy the shared directory (or any other dependent folder) into the container
COPY shared /app/shared
# Copy the frontend directory into the container
COPY frontend /app/frontend
# Set environment variables if needed (e.g., for .env file)
# You can optionally add the .env file or configure them here
# Run the FastAPI app with Uvicorn, pointing to the main.py file inside backend
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]