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:
parent
94251c2f30
commit
6cab7540c6
1 changed files with 2 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue