-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathDockerfile.test
48 lines (47 loc) · 1.57 KB
/
Dockerfile.test
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ghost:5-alpine as cloudinary
RUN apk add g++ make python3
COPY --chown=node:node . /tmp/ghost-storage-cloudinary
RUN su-exec node yarn add file:/tmp/ghost-storage-cloudinary
FROM ghost:5-alpine
COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/node_modules $GHOST_INSTALL/node_modules
COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/node_modules/ghost-storage-cloudinary $GHOST_INSTALL/content/adapters/storage/ghost-storage-cloudinary
ENV DEBUG="ghost:*,ghost-config,ghost-storage-cloudinary:*"
ARG CLOUDINARY_URL
ENV CLOUDINARY_URL=${CLOUDINARY_URL}
ENV NODE_ENV=development
COPY <<EOF /var/lib/ghost/config.development.json
{
"url": "http://localhost:2368",
"database": {"client": "sqlite3"},
"logging": {
"level": "debug",
"transports": ["stdout"]
},
"server": {"host": "0.0.0.0"},
"paths": {"contentPath": "/var/lib/ghost/content/"},
"imageOptimization": {"resize": false},
"storage": {
"active": "ghost-storage-cloudinary",
"ghost-storage-cloudinary": {
"upload": {
"use_filename": true,
"unique_filename": false,
"overwrite": false,
"folder": "test",
"tags": ["test"]
},
"fetch": {
"transformation": "blog",
"secure": false,
"cdn_subdomain": true
},
"plugins": {
"retinajs": {
"fireForget": true,
"baseWidth": 500
}
}
}
}
}
EOF