payer-auth-sim / Dockerfile
pilayar's picture
Create Dockerfile
1b2ed91 verified
raw
history blame contribute delete
389 Bytes
# Use official Python image
FROM python:3.9
# Set the working directory
WORKDIR /code
# Copy requirements and install
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the app code
COPY . .
# Start FastAPI on port 7860 (Hugging Face's default port)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]