Dockerfile mode

x
 
1
# Install Ghost blogging platform and run development environment
2
#
3
# VERSION 1.0.0
4
5
FROM ubuntu:12.10
6
MAINTAINER Amer Grgic "amer@livebyt.es"
7
WORKDIR /data/ghost
8
9
# Install dependencies for nginx installation
10
RUN apt-get update
11
RUN apt-get install -y python g++ make software-properties-common --force-yes
12
RUN add-apt-repository ppa:chris-lea/node.js
13
RUN apt-get update
14
# Install unzip
15
RUN apt-get install -y unzip
16
# Install curl
17
RUN apt-get install -y curl
18
# Install nodejs & npm
19
RUN apt-get install -y rlwrap
20
RUN apt-get install -y nodejs 
21
# Download Ghost v0.4.1
22
RUN curl -L https://ghost.org/zip/ghost-latest.zip -o /tmp/ghost.zip
23
# Unzip Ghost zip to /data/ghost
24
RUN unzip -uo /tmp/ghost.zip -d /data/ghost
25
# Add custom config js to /data/ghost
26
ADD ./config.example.js /data/ghost/config.js
27
# Install Ghost with NPM
28
RUN cd /data/ghost/ && npm install --production
29
# Expose port 2368
30
EXPOSE 2368
31
# Run Ghost
32
CMD ["npm","start"]
33

Dockerfile syntax highlighting for CodeMirror. Depends on the simplemode addon.

MIME types defined: text/x-dockerfile