Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
_site
node_modules
.git
.github
.editorconfig
.gitattributes
.gitignore
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ services:
- ./htaccess:/usr/local/apache2/htdocs/.htaccess
ports:
- 8082:80
healthcheck:
test: ["CMD", "curl", "-o", "/dev/null", "-s", "http://localhost"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
profiles:
- manual

Expand Down
5 changes: 4 additions & 1 deletion serve.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ FROM dcycle/broken-link-checker:3 AS broken_link_checker

FROM httpd:2.4.64 AS httpd_serve

# Install curl for healthcheck
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

# COPY _site /var/www/html/
COPY .github/scripts/staging/http2.conf /etc/httpd/conf/httpd.conf
COPY .github/scripts/staging/default.conf /usr/local/apache2/conf/httpd.conf

FROM base