Created
April 13, 2017 18:35
-
-
Save learntoswim/200abbbd71b33fc4a687b13583d92766 to your computer and use it in GitHub Desktop.
Docker Container for Wagtail on Google App Engine
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
# 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