|
1 | | -# Base Dockerfile for all AppEngine runtime implementations. |
2 | | -FROM google/debian:wheezy |
3 | | -# Clean any CMD that might be inherited from previous image, because that |
4 | | -# will pollute our ENTRYPOINT, see |
5 | | -# http://docs.docker.io/en/latest/reference/builder/#entrypoint. |
6 | | -CMD [] |
7 | | -ENV DEBIAN_FRONTEND noninteractive |
| 1 | +FROM gcr.io/google_appengine/base |
| 2 | + |
8 | 3 | RUN apt-get -q update && \ |
9 | | - apt-get install --no-install-recommends -y -q ca-certificates net-tools lsof \ |
| 4 | + apt-get install --no-install-recommends -y -q \ |
10 | 5 | python2.7 python-pip python-gevent python-greenlet && \ |
11 | | - apt-get -y -q upgrade && apt-get clean && rm /var/lib/apt/lists/*_* |
| 6 | + apt-get clean && rm /var/lib/apt/lists/*_* |
| 7 | + |
| 8 | +COPY python-runtime-0.1.tar.gz /home/vmagent/python-runtime.tar.gz |
12 | 9 |
|
13 | | -ADD python_vm_runtime.tar.gz /home/vmagent/python_vm_runtime |
| 10 | +RUN pip install --upgrade pip>=6.1.1 gunicorn==19.1.1 |
| 11 | +RUN pip install /home/vmagent/python-runtime.tar.gz |
14 | 12 |
|
15 | 13 | EXPOSE 8080 |
16 | 14 |
|
17 | 15 | RUN ln -s /home/vmagent/app /app |
18 | 16 | WORKDIR /app |
19 | 17 |
|
20 | | -RUN ln -s /home/vmagent/python_vm_runtime/google /home/vmagent/app/google |
21 | | - |
22 | | -ENTRYPOINT ["/usr/bin/env", "gunicorn", "-w", "4", "-k", "gevent", "-b", "0.0.0.0:8080", "wsgi:meta_app", "--log-file=-"] |
23 | | - |
24 | | -ADD . /home/vmagent/app/ |
| 18 | +ENTRYPOINT ["/usr/bin/env", "gunicorn", "-w", "4", "-k", "gevent", "-b", "0.0.0.0:8080", "google.appengine.vmruntime.wsgi:meta_app", "--log-file=-"] |
25 | 19 |
|
26 | | -RUN pip install -r base_requirements.txt |
| 20 | +ADD . /app |
0 commit comments