uzoagro-api / Dockerfile
Gini-Eddie's picture
Upload 4 files
1d41ab0 verified
raw
history blame contribute delete
428 Bytes
# Use official Python image
FROM python:3.10
# Set the working directory
WORKDIR /code
# Copy the requirements file and install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
# Copy all your app files to the cloud
COPY . .
# Hugging Face REQUIRES the app to run on port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]