Skip to content

Commit

Permalink
Add HEALTHCHECK
Browse files Browse the repository at this point in the history
  • Loading branch information
tomohiro committed Apr 5, 2020
1 parent db8cfac commit 93b7c74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY Gemfile .
COPY Gemfile.lock .

RUN set -ex \
&& apk add --update --no-cache build-base=0.5-r1 \
&& apk add --update --no-cache curl=7.67.0-r0 build-base=0.5-r1 \
&& bundle config frozen true \
&& bundle install --jobs=4 --without="test:development" \
&& rm -rf "${BUNDLE_PATH}/cache/*"
Expand All @@ -22,3 +22,5 @@ COPY . .
EXPOSE 8080
ENTRYPOINT ["bundle"]
CMD ["exec", "rackup", "--host", "0.0.0.0", "-p", "8080"]

HEALTHCHECK CMD curl -s -S -o /dev/null http:/0:8080 || exit 1

0 comments on commit 93b7c74

Please sign in to comment.