CoolFace
Apppublic

koti-malla/object_detection

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Use the official Python image as base2FROM python:3.8-slim-buster3 4# Set the working directory5WORKDIR /code6 7 8 9# Copy the requirements file into the container10COPY requirements.txt requirements.txt11 12# Install dependencies13RUN pip install -r requirements.txt14 15# Install libgl1-mesa-glx and libglib2.0-016RUN apt-get update && apt-get install -y libgl1-mesa-glx libglib2.0-017# Copy the rest of the application code into the container18COPY . .19 20# Expose the port the app runs on21#EXPOSE 500022 23# Define the command to run the app when the container starts24CMD ["python", "-m", "flask", "run", "--host", "0.0.0.0", "--port", "7860"]