Created
December 6, 2016 17:39
-
-
Save volnt/f0914784bc16a82d76068a5bb27e714b to your computer and use it in GitHub Desktop.
Dockerfile for appengine
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
FROM ubuntu:trusty | |
RUN apt-get update &&\ | |
apt-get install -y -qq wget rlwrap unzip python-dev python-pip libxml2-dev libxslt-dev zlib1g-dev libjpeg-dev &&\ | |
pip install pycrypto lxml jinja2 webob webapp2 django Pillow | |
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.zip &&\ | |
unzip google-cloud-sdk.zip &&\ | |
rm google-cloud-sdk.zip | |
RUN google-cloud-sdk/install.sh \ | |
--usage-reporting=true \ | |
--path-update=true \ | |
--bash-completion=true \ | |
--rc-path=/.bashrc \ | |
--additional-components app-engine-python | |
ENV PATH /google-cloud-sdk/bin:$PATH | |
ENV APPENGINE /google-cloud-sdk/bin | |
WORKDIR app | |
EXPOSE 8000 | |
EXPOSE 8888 | |
CMD ["dev_appserver.py", "--host=0.0.0.0", "--port=8888", "app/app.yaml"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment