forked from thedigitalgarage/dg-ghost-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 962 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
31
32
33
34
FROM ghost
MAINTAINER Edward, [email protected]
# Add in better default config
ADD config.example.js config.example.js
# Add a few themes
COPY themes/bootstraptheme content/themes/bootstraptheme
COPY themes/ghostium content/themes/ghostium
COPY themes/ghostScroll content/themes/ghostScroll
COPY themes/mapache-godofredo content/themes/mapache-godofredo
COPY themes/perfetta content/themes/perfetta
COPY themes/portfolio content/themes/portfolio
COPY themes/saga content/themes/saga
COPY themes/webkid content/themes/webkid
# Fix ownership in src
RUN chown -R user $GHOST_SOURCE/content
RUN chgrp -R 0 $GHOST_SOURCE
RUN chmod -R g+rw $GHOST_SOURCE
RUN find $GHOST_SOURCE -type d -exec chmod g+x {} +
# Install GIT
RUN apt-get update && apt-get install -y git
# Change to non-root user
USER user
# Default environment variables
ENV NODE_ENV production
# Port 2368 for ghost server
EXPOSE 2368