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.
This commit is contained in:
Joe Doss 2020-08-04 11:48:09 -05:00 committed by GitHub
parent 94251c2f30
commit 6cab7540c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]