cat-dog-classifier / Dockerfile
Abdullah104's picture
Create Dockerfile
3439ac6 verified
raw
history blame contribute delete
314 Bytes
FROM python:3.10
# Set working directory
WORKDIR /code
# Copy code
COPY ./app /code
# Install dependencies
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Expose port
EXPOSE 7860
# Start the FastAPI app using uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]