Team Ai
Apppublic

SudiptaKumar/object_detection

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
Dockerfile26 linesDownload Raw Back to google_app_engine
1FROM gcr.io/google-appengine/python2 3# Create a virtualenv for dependencies. This isolates these packages from4# system-level packages.5# Use -p python3 or -p python3.7 to select python version. Default is version 2.6RUN virtualenv /env -p python37 8# Setting these environment variables are the same as running9# source /env/bin/activate.10ENV VIRTUAL_ENV /env11ENV PATH /env/bin:$PATH12 13RUN apt-get update && apt-get install -y python-opencv14 15# Copy the application's requirements.txt and run pip to install all16# dependencies into the virtualenv.17ADD requirements.txt /app/requirements.txt18RUN pip install -r /app/requirements.txt19 20# Add the application source code.21ADD . /app22 23# Run a WSGI server to serve the application. gunicorn must be declared as24# a dependency in requirements.txt.25CMD gunicorn -b :$PORT main:app26