From 6cab7540c60fa1e310ed44bcaa6159808f682c90 Mon Sep 17 00:00:00 2001 From: Joe Doss Date: Tue, 4 Aug 2020 11:48:09 -0500 Subject: [PATCH] Add in a VOLUME directive in the Container file. (#9625) This lets other containers like nginx/Openresty mount the /opt/apps/forem/public directory to get at static files like 500.html. --- Containerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Containerfile b/Containerfile index 6cdfd7792..a5288e5df 100644 --- a/Containerfile +++ b/Containerfile @@ -49,6 +49,8 @@ RUN mkdir -p "${APP_HOME}"/public/{assets,images,packs,podcasts,uploads} COPY . "${APP_HOME}" +VOLUME "${APP_HOME}"/public/ + ENTRYPOINT ["./scripts/entrypoint.sh"] CMD ["bundle", "exec", "rails","server","-b","0.0.0.0","-p","3000"]