Skip to content

Instantly share code, notes, and snippets.

@joantune
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joantune/134e186db92e40ead5ab to your computer and use it in GitHub Desktop.
Save joantune/134e186db92e40ead5ab to your computer and use it in GitHub Desktop.
Bmetrics - Ghost - Dockerfile
#
# 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