FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
getting-started-python/optional-container-engine/Dockerfile at master · dpebot/getting-started-python · GitHub
dpebot
/
getting-started-python
Public
forked from
GoogleCloudPlatform/getting-started-python
Notifications
You must be signed in to change notification settings
Fork
4
Star
5
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
getting-started-python
/
optional-container-engine
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (22 loc) · 1.05 KB
Breadcrumbs
getting-started-python
/
optional-container-engine
/
Dockerfile
Copy path
File metadata and controls
27 lines (22 loc) · 1.05 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
The Google App Engine python runtime is Debian Jessie with Python installed
#
and various os-level packages to allow installation of popular Python
#
libraries. The source is on github at:
#
https://github.com/GoogleCloudPlatform/python-docker
FROM
gcr.io/google_appengine/python
#
Create a virtualenv for the application dependencies.
#
If you want to use Python 3, add the -p python3.4 flag.
RUN
virtualenv /env
#
Set virtualenv environment variables. This is equivalent to running
#
source /env/bin/activate. This ensures the application is executed within
#
the context of the virtualenv and will have access to its dependencies.
ENV
VIRTUAL_ENV /env
ENV
PATH /env/bin:$PATH
#
Install dependencies.
ADD
requirements.txt /app/requirements.txt
RUN
pip install -r /app/requirements.txt
#
Add application code.
ADD
. /app
#
Instead of using gunicorn directly, we'll use Honcho. Honcho is a python port
#
of the Foreman process manager. $PROCESSES is set in the pod manifest
#
to control which processes Honcho will start.
CMD
honcho start -f /app/procfile $PROCESSES
Back
|
FazBrowse Home
|
New Git URL