Spaces:
mxrkai
/
Runtime error

test24 / Dockerfile
Niansuh's picture
Create Dockerfile
c7b1ae2 verified
raw
history blame
410 Bytes
# Use the official Python image
FROM python:3.11-slim
# Set the working directory
WORKDIR /app
# Copy the requirements file (if you have one, otherwise just copy main.py)
COPY main.py ./
# Install required packages
RUN pip install fastapi uvicorn aiohttp
# Expose the port the app runs on
EXPOSE 8000
# Command to run the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]