SetParams
app
configs
controller
core
models
schemas
services
utils
yolov5
.github
classify
data
models
utils
aws
docker
flask_rest_api
google_app_engine
Dockerfile
additional_requirements.txt
app.yaml
loggers
__init__.py
activations.py
augmentations.py
autoanchor.py
autobatch.py
benchmarks.py
callbacks.py
dataloaders.py
downloads.py
general.py
loss.py
metrics.py
plots.py
torch_utils.py
.dockerignore
.gitattributes
.gitignore
.pre-commit-config.yaml
CONTRIBUTING.md
LICENSE
README.md
detect_server.py
export.py
hubconf.py
train_server.py
tutorial.ipynb
val.py
validate_server.py
yolov5s.pt
zdp_R-ODYv1.pt
__init__.py
exts.py
file_tool.py
json_util.py
run.py
docs
tests
.gitignore
SetParams_Demo.py
__init__.py
deploy.sh
docker-compose.yml
nohup.out
pytest.ini
requirements.txt
requirements_p37.txt
setparams.py
26 lines
821 B
Docker
26 lines
821 B
Docker
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
|