mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-04-29 05:26:40 +00:00
11 lines
265 B
Docker
11 lines
265 B
Docker
FROM ruby:alpine
|
|
RUN apk add --update build-base curl
|
|
RUN gem install sinatra
|
|
RUN gem install thin
|
|
ADD hasher.rb /
|
|
CMD ["ruby", "hasher.rb"]
|
|
EXPOSE 80
|
|
HEALTHCHECK \
|
|
--interval=1s --timeout=2s --retries=3 --start-period=1s \
|
|
CMD curl http://localhost/ || exit 1
|