Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danieleorler/24771fbf5dc58d4131d6b37f655e0ef5 to your computer and use it in GitHub Desktop.
Save danieleorler/24771fbf5dc58d4131d6b37f655e0ef5 to your computer and use it in GitHub Desktop.
# start from a python 2 official image
FROM python:2
# install unzip, download and unzip google app engine
RUN apt-get update \
&& apt-get install -y unzip \
&& wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.40.zip -P /tmp \
&& unzip -q /tmp/google_appengine_1.9.40.zip -d /opt > /dev/null
# expose application and admin port
EXPOSE 8080 8000
# start google app engine when the container is ran
CMD /opt/google_appengine/dev_appserver.py --host=0.0.0.0 --skip_sdk_update_check=yes --storage_path /usr/share/app/.data /usr/share/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment