Spaces:
mxrkai
/
Runtime error

File size: 485 Bytes
99ff4b8
 
c7b1ae2
99ff4b8
c7b1ae2
 
99ff4b8
3721a6d
60eeb4d
f620980
99ff4b8
a99b7f4
933a887
99ff4b8
 
3721a6d
99ff4b8
 
3721a6d
99ff4b8
 
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 FastAPI image with Python 3.9
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9

# Set the working directory
WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the application code
COPY . .

# Set environment variables
ENV APP_SECRET=your_app_secret_here

# Expose the port
EXPOSE 8001

# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]