Created
June 3, 2020 20:03
-
-
Save 22phuber/76c282d18ec0db166aa1aa3812217e1e to your computer and use it in GitHub Desktop.
Ghost Dockerfile how to add the AWS S3 storage adapter
This file contains 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 "ghost-storage-adapter-s3@2.8.0" | |
# 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