Skip to content

Commit cc0de44

Browse files
committed
Switch to cp command & one Dockerfile
1 parent 80a4f1a commit cc0de44

File tree

6 files changed

+8
-21
lines changed

6 files changed

+8
-21
lines changed

.diploi/helm/app.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ spec:
5353
{{- if eq .Values.stage "development" }}
5454
- name: paths__contentPath
5555
value: /app/{{ .Values.identifier }}
56+
- name: NODE_ENV
57+
value: development
5658
{{- end }}
5759
- name: url
5860
value: https://{{ .Values.hosts.app }}

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ ARG FOLDER=/app
44
FROM ghost:alpine
55

66
COPY --chown=1000:1000 . /app
7-
COPY --chown=1000:1000 ./adapters/DiploiFilesStorage.j[s] /var/lib/ghost/versions/$GHOST_VERSION/core/server/adapters/storage/
8-
COPY --chown=1000:1000 ./adapters/DiploiImagesStorage.j[s] /var/lib/ghost/versions/$GHOST_VERSION/core/server/adapters/storage/
9-
COPY --chown=1000:1000 ./adapters/DiploiMediaStorage.j[s] /var/lib/ghost/versions/$GHOST_VERSION/core/server/adapters/storage/
107

11-
ENV NODE_ENV=production
8+
# Copy Diploi storage adapters to the Ghost core
9+
RUN cp ${FOLDER}/adapters/Diploi*Storage.js /var/lib/ghost/versions/$GHOST_VERSION/core/server/adapters/storage/
10+
1211
ENV paths__contentPath=${FOLDER}
1312

1413
USER 1000:1000

Dockerfile.dev

Lines changed: 0 additions & 14 deletions
This file was deleted.

adapters/DiploiFilesStorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// # Local File System Storage module
22
// The (default) module for storing media, modified to use the Diploi volume mount /data
3-
// This file will be moved to the /core/server/adapters/storage folder by the Dockerfiles.
3+
// This file will be moved to the /core/server/adapters/storage folder by the Dockerfile.
44
const config = require('../../../shared/config');
55
const LocalStorageBase = require('./LocalStorageBase');
66

adapters/DiploiImagesStorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// # Local File System Image Storage module
22
// The (default) module for storing images, modified to use the Diploi volume mount /data
3-
// This file will be moved to the /core/server/adapters/storage folder by the Dockerfiles.
3+
// This file will be moved to the /core/server/adapters/storage folder by the Dockerfile.
44
const config = require('../../../shared/config');
55
const urlUtils = require('../../../shared/url-utils');
66
const LocalStorageBase = require('./LocalStorageBase');

adapters/DiploiMediaStorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// # Local File System Media Storage module
22
// The (default) module for storing media, modified to use the Diploi volume mount /data
3-
// This file will be moved to the /core/server/adapters/storage folder by the Dockerfiles.
3+
// This file will be moved to the /core/server/adapters/storage folder by the Dockerfile.
44
const config = require('../../../shared/config');
55
const LocalStorageBase = require('./LocalStorageBase');
66

0 commit comments

Comments
 (0)