Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating sample dockerfile and fixing an error in the README.
- Loading branch information
Jon Wayne Parrott
committed
Nov 13, 2015
1 parent
8cc4514
commit 21ddce1
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
FROM google/python-runtime | ||
FROM gcr.io/google_appengine/python | ||
RUN virtualenv /env -p python3.4 | ||
|
||
ENTRYPOINT /env/bin/gunicorn -c gunicorn.conf.py -b 0.0.0.0:8080 main:app | ||
# Set virtualenv environment variables. This is equivalent to running | ||
# source /env/bin/activate | ||
ENV VIRTUAL_ENV /env | ||
ENV PATH /env/bin:$PATH | ||
|
||
ADD requirements.txt /app/ | ||
RUN pip install -r requirements.txt | ||
ADD . /app/ | ||
CMD gunicorn -c gunicorn.conf.py -b :$PORT main:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
runtime: custom | ||
vm: true | ||
api_version: 1 | ||
entrypoint: custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters