Skip to content

Instantly share code, notes, and snippets.

@learntoswim
Created April 13, 2017 18:35
Show Gist options
  • Save learntoswim/200abbbd71b33fc4a687b13583d92766 to your computer and use it in GitHub Desktop.
Save learntoswim/200abbbd71b33fc4a687b13583d92766 to your computer and use it in GitHub Desktop.
Docker Container for Wagtail on Google App Engine
# docker build -t wagtail .
# docker run -it -v $(pwd):/app -p 0.0.0.0:8080:8080 wagtail python manage.py runserver 0.0.0.0:8080
FROM ubuntu:latest
RUN apt-get update &&\
apt-get install -y language-pack-en-base python python-pip python-dev libjpeg-dev zlib1g-dev libpython-dev libmysqlclient-dev &&\
apt-get clean &&\
locale-gen en_US &&\
update-locale LANG=en_US.UTF-8
ADD https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-151.0.0-linux-x86_64.tar.gz /tmp/cloudsdk.tar.gz
RUN tar -zxvf /tmp/cloudsdk.tar.gz -C /tmp
RUN /tmp/google-cloud-sdk/install.sh
RUN /tmp/google-cloud-sdk/bin/gcloud components install app-engine-python
RUN pip install wagtail MySQL-python
EXPOSE 8080
VOLUME ["/app"]
WORKDIR /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment