A little sanity for our infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
496 B

FROM ruby:2.6.6-alpine
LABEL MAINTAINERS="Christian Aust <git@kontakt.software-consultant.net>"
RUN apk --no-cache add build-base
COPY Gemfile* /tmp/
RUN gem install bundler && bundle install --gemfile=/tmp/Gemfile --quiet
RUN mkdir /usr/local/sanity
COPY run.rb /usr/local/sanity/
COPY lib /usr/local/sanity/lib
RUN adduser --disabled-password --home /app --no-create-home --uid 993 sanity
USER sanity
VOLUME /app
WORKDIR /app
CMD ["ruby", "/usr/local/sanity/run.rb", "/app/targets.json"]