Use the entrypoint setup to run jekyll
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d00d763645
commit
741df0045b
@ -10,4 +10,4 @@ RUN bundle config --global frozen 1
|
|||||||
|
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
||||||
CMD ["jekyll", "serve", "--trace"]
|
ENTRYPOINT ["/sbin/entrypoint.sh"]
|
||||||
|
24
sbin/entrypoint.sh
Executable file
24
sbin/entrypoint.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
# Fire up Jekyll with the right configuration
|
||||||
|
run_jekyll() {
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
jekyll serve \
|
||||||
|
--port "$JEKYLL_PORT" \
|
||||||
|
--host "$JEKYLL_HOST" \
|
||||||
|
--ssl-cert "$JEKYLL_SSL_CERT" \
|
||||||
|
--ssl-key "$JEKYLL_SSL_KEY" \
|
||||||
|
--trace
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main entrypoint
|
||||||
|
main() {
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
run_jekyll
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
Reference in New Issue
Block a user