-
-
Save lvnilesh/8263a19732ac59ea3479c7f1ce687882 to your computer and use it in GitHub Desktop.
Ghost Dockerfile how to add the AWS S3 storage adapter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker multistage build ghost blog with AWS S3 storage adapter | |
# Configure ghost-storage-adapter-s3 | |
# => https://www.npmjs.com/package/ghost-storage-adapter-s3 | |
# stage | |
FROM ghost:3.17-alpine as ghost-storage-adapter-s3 | |
WORKDIR $GHOST_INSTALL/current | |
RUN yarn add "[email protected]" | |
# build | |
FROM ghost:3.17-alpine | |
COPY --chown=node:node --from=ghost-storage-adapter-s3 $GHOST_INSTALL/current/node_modules $GHOST_INSTALL/current/node_modules | |
COPY --chown=node:node --from=ghost-storage-adapter-s3 $GHOST_INSTALL/current/node_modules/ghost-storage-adapter-s3 $GHOST_INSTALL/current/core/server/adapters/storage/s3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment