File size: 729 Bytes
523d9e6
 
 
 
 
 
 
 
 
 
 
 
 
700554d
523d9e6
 
 
 
700554d
523d9e6
 
700554d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use the official Python image as a base image
FROM python:3.12.4

# Set the working directory in the container
WORKDIR /smartcat

# Copy the current directory contents into the container
COPY . /smartcat

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

EXPOSE 7860 8501

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1

# CMD ["uvicorn", "scripts.api:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]

# Command to start FastAPI and Streamlit
CMD ["bash", "-c", "uvicorn scripts.api:app --host 0.0.0.0 --port 7860 & streamlit run app.py --server.port=8501 --server.address=0.0.0.0"]