actions/rubocop/Dockerfile

21 lines
646 B
Text
Raw Normal View History

FROM ruby:2.6-alpine3.8@sha256:58bb64194026bff3c83c980dccd266e0ddcf50001e231d0f69f08758365e1f39
2019-01-06 01:05:05 +08:00
LABEL repository="https://github.com/koenrh/rubocop-action"
LABEL maintainer="Koen Rouwhorst <info@koenrouwhorst.nl>"
LABEL "com.github.actions.name"="RuboCop"
LABEL "com.github.actions.description"="RuboCop is a Ruby static code analyzer and code formatter."
LABEL "com.github.actions.icon"="flag"
LABEL "com.github.actions.color"="red"
RUN apk add --no-cache \
build-base=~0.5
RUN addgroup -S rubocop && \
adduser -S -g rubocop rubocop
RUN gem install rubocop --no-document
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]