Created
October 26, 2016 12:46
-
-
Save bradleyg/88ef0633d33d1f7ab3f1716a4740765e to your computer and use it in GitHub Desktop.
Dockerfile for Wagtail on GAE
This file contains hidden or 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 | |
FROM ubuntu:latest | |
RUN apt-get update -y | |
RUN apt-get install -y python python-pip python-dev libmysqlclient-dev | |
ADD https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-131.0.0-linux-x86.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