Use the entrypoint setup to run jekyll
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-03-31 14:37:09 +02:00
parent d00d763645
commit 741df0045b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 25 additions and 1 deletions

View File

@ -10,4 +10,4 @@ RUN bundle config --global frozen 1
RUN bundle install
CMD ["jekyll", "serve", "--trace"]
ENTRYPOINT ["/sbin/entrypoint.sh"]

24
sbin/entrypoint.sh Executable file
View 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