Last active
August 29, 2015 14:06
-
-
Save joantune/134e186db92e40ead5ab to your computer and use it in GitHub Desktop.
Bmetrics - Ghost - Dockerfile
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
# | |
# Ghost Dockerfile | |
# | |
# https://github.com/dockerfile/ghost | |
# | |
# Pull base image. | |
FROM dockerfile/nodejs | |
# Install Ghost | |
RUN \ | |
cd /tmp && \ | |
wget https://ghost.org/zip/ghost-latest.zip && \ | |
unzip ghost-latest.zip -d /ghost && \ | |
rm -f ghost-latest.zip && \ | |
cd /ghost && \ | |
npm install --production && \ | |
sed 's/127.0.0.1/0.0.0.0/' /ghost/config.example.js > /ghost/config.js && \ | |
useradd ghost --home /ghost | |
# Add files. | |
ADD start.bash /ghost-start | |
# Set environment variables. | |
ENV NODE_ENV production | |
# Define mountable directories. | |
VOLUME ["/data", "/ghost-override"] | |
# Define working directory. | |
WORKDIR /ghost | |
# Define default command. | |
CMD ["bash", "/ghost-start"] | |
# Expose ports. | |
EXPOSE 2380 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment