Skip to content

Instantly share code, notes, and snippets.

@22phuber
Created June 3, 2020 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 22phuber/76c282d18ec0db166aa1aa3812217e1e to your computer and use it in GitHub Desktop.
Save 22phuber/76c282d18ec0db166aa1aa3812217e1e to your computer and use it in GitHub Desktop.
Ghost Dockerfile how to add the AWS S3 storage adapter
# 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