Spaces:
Sleeping
Sleeping
FROM python:3.9-slim | |
# Set the working directory in the container | |
WORKDIR /app | |
# Copy the current directory contents into the container at /app | |
COPY . /app | |
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y && apt-get install -y python3-opencv | |
RUN pip install gunicorn | |
# Install any needed dependencies specified in requirements.txt | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Make port 80 available to the world outside this container | |
EXPOSE 5000 | |
# Define environment variable | |
ENV NAME World | |
# Run app.py when the container launches | |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] |