Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker compose issue #2799

Merged
merged 6 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ruby:latest
RUN apt-get update && apt-get install -y nodejs npm
ENV DEBIAN_FRONTEND noninteractive

Label MAINTAINER Amir Pourmand
Expand Down Expand Up @@ -38,5 +39,7 @@ RUN bundle install --no-cache
EXPOSE 8080

COPY bin/entry_point.sh /tmp/entry_point.sh
RUN chmod +x /tmp/entry_point.sh

ENTRYPOINT ["/bin/bash", "/tmp/entry_point.sh"]
pourmand1376 marked this conversation as resolved.
Show resolved Hide resolved
CMD ["/tmp/entry_point.sh"]
5 changes: 5 additions & 0 deletions bin/entry_point.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
set -e

echo "Entry point script running"

CONFIG_FILE=_config.yml

Expand Down Expand Up @@ -32,3 +35,5 @@ while true; do
start_jekyll
fi
done

exec "$@"
pourmand1376 marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ services:
- .:/srv/jekyll
environment:
- JEKYLL_ENV=development
entrypoint: /tmp/entry_point.sh
pourmand1376 marked this conversation as resolved.
Show resolved Hide resolved