-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (28 loc) · 881 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Install Ghost blogging platform and run development environment on port 5000
#
# VERSION 0.0.2
FROM ubuntu:12.10
MAINTAINER Amer Grgic "[email protected]"
WORKDIR /data/ghost
# Install dependencies for nginx installation
RUN apt-get install -y python g++ make software-properties-common
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update
# Install unzip
RUN apt-get install -y unzip
# Install nodejs & npm
RUN apt-get install -y rlwrap
RUN apt-get install -y nodejs
RUN curl https://npmjs.org/install.sh | sh
# Add Ghost zip to image
ADD ./ghost-0.3.2.zip /tmp/
# Unzip Ghost zip to /data/ghost
RUN unzip -uo /tmp/ghost-0.3.2.zip -d /data/ghost
# Add custom config js to /data/ghost
ADD ./config.example.js /data/ghost/config.js
# Install Ghost with NPM
RUN cd /data/ghost/ && npm install --production
# Expose port 2368
EXPOSE 2368
# Run Ghost
CMD ["npm","start"]