forked from GoogleCloudPlatform/python-compat-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (22 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM gcr.io/google_appengine/base
RUN apt-get -q update && \
apt-get install --no-install-recommends -y -q \
python2.7 python-setuptools && \
apt-get clean && rm /var/lib/apt/lists/*_*
# This step adds the actual compiled runtime ('python setup.py sdist') to the
# docker image.
COPY python-runtime.tar.gz /home/vmagent/python-runtime.tar.gz
RUN easy_install pip
RUN pip install gunicorn==19.3.0 futures==3.0.3
RUN pip install google-python-cloud-debugger
RUN pip install /home/vmagent/python-runtime.tar.gz
EXPOSE 8080
RUN ln -s /home/vmagent/app /app
WORKDIR /app
# Add the default gunicorn configuration file to the app directory. This
# default file will be overridden if the user adds a file called
# "gunicorn.conf.py" to their app's root directory.
ADD gunicorn.conf.py /app/gunicorn.conf.py
# Configure the entrypoint with Managed VMs-essential configuration like "bind",
# but leave the rest up to the config file.
ENTRYPOINT ["/usr/bin/env", "gunicorn", "-b", "0.0.0.0:8080", "google.appengine.vmruntime.wsgi:meta_app", "--log-file=-", "-c", "gunicorn.conf.py"]