pwdlapiV1 / Dockerfile
AkshitShubham's picture
Upload folder using huggingface_hub
6309782 verified
raw
history blame contribute delete
535 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim-buster
# Set the working directory in the container to /app
WORKDIR /app
# Add the current directory contents into the container at /app
ADD . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Install Gunicorn
RUN pip install gunicorn
# Make port 5000 available to the world outside this container
EXPOSE 7680
# Run the app with gunicorn
CMD ["gunicorn", "-b", ":7680", "beta.api.api:app"]