File size: 474 Bytes
76647ec
f67a585
76647ec
8d08e7b
2e22948
76647ec
 
f67a585
 
76647ec
f67a585
76647ec
8d08e7b
76647ec
 
f67a585
76647ec
f67a585
7c6266c
f67a585
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11

# Set the working directory inside the container
WORKDIR /app

# Copy all project files into the container
COPY . /app

# Install dependencies
RUN pip install --upgrade pip

RUN mkdir -p /app/logs && chmod -R 777 /app/logs

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 7860
# Run FastAPI and Streamlit in parallel
CMD ["uvicorn" ,"main:app","--host" ,"0.0.0.0", "--port", "7860"]