Spaces:
Running
Running
Download utils/google_app_engine/Dockerfile from SamDaLamb/ValorantTracker: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/spaces/SamDaLamb/ValorantTracker/resolve/main/utils/google_app_engine/Dockerfile
- Command line
-
hf download hf://spaces/SamDaLamb/ValorantTracker/utils/google_app_engine/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SamDaLamb/ValorantTracker/resolve/main/utils/google_app_engine/Dockerfile
846 Bytes
| FROM gcr.io/google-appengine/python | |
| # Create a virtualenv for dependencies. This isolates these packages from | |
| # system-level packages. | |
| # Use -p python3 or -p python3.7 to select python version. Default is version 2. | |
| RUN virtualenv /env -p python3 | |
| # Setting these environment variables are the same as running | |
| # source /env/bin/activate. | |
| ENV VIRTUAL_ENV /env | |
| ENV PATH /env/bin:$PATH | |
| RUN apt-get update && apt-get install -y python-opencv | |
| # Copy the application's requirements.txt and run pip to install all | |
| # dependencies into the virtualenv. | |
| ADD requirements.txt /app/requirements.txt | |
| RUN pip install -r /app/requirements.txt | |
| # Add the application source code. | |
| ADD . /app | |
| # Run a WSGI server to serve the application. gunicorn must be declared as | |
| # a dependency in requirements.txt. | |
| CMD gunicorn -b :$PORT main:app | |