1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

fix mediagoblin

This commit is contained in:
kev 2016-07-10 16:01:46 +08:00
parent ee811a6574
commit 92e8aa9792
2 changed files with 7 additions and 4 deletions

@ -8,7 +8,8 @@ A collection of delicious docker recipes.
- :octocat: <https://github.com/vimagick/dockerfiles>
- :beetle: <https://github.com/vimagick/dockerfiles/issues>
- :book: <https://github.com/vimagick/dockerfiles/wiki>
- :whale: <https://hub.docker.com/u/vimagick/>
- :whale: <https://hub.docker.com/u/vimagick/> (x86)
- :whale: <https://hub.docker.com/u/easypi/> (arm)
[![](https://www.vultr.com/media/badge_onwhite.png)](https://www.vultr.com/?ref=6821947)

@ -85,7 +85,9 @@ ENV MG_MAIL admin@easypi.info
CMD set -xe \
&& sudo nginx \
&& sudo chown -hR mediagoblin:www-data /var/lib/mediagoblin \
&& bin/gmg dbupdate \
&& bin/gmg adduser --username "${MG_USER}" --password "${MG_PASS}" --email "${MG_MAIL}" \
&& bin/gmg makeadmin "${MG_USER}" \
&& { \
bin/gmg dbupdate; \
bin/gmg adduser --username "${MG_USER}" --password "${MG_PASS}" --email "${MG_MAIL}"; \
bin/gmg makeadmin "${MG_USER}"; \
} \
&& ./lazyserver.sh --server-name=fcgi fcgi_host=127.0.0.1 fcgi_port=26543