File size: 473 Bytes
85bc30c
0b42f07
85bc30c
 
7317f8e
85bc30c
82c1c44
 
85bc30c
82c1c44
85bc30c
 
 
82c1c44
 
85bc30c
82c1c44
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use the official Python slim image to keep the image size small
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Copy all application and test files
COPY . .

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt && \
    pip install --no-cache-dir requests pytest

# Expose the port for the FastAPI server
EXPOSE 7860

# Command to run the application
CMD ["uvicorn", "bot_runner:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]