Files
foodcritic/Dockerfile
Julien Cabillot eda634909a
Some checks are pending
perso/foodcritic/pipeline/head Build queued...
feat: bump alpine
2026-03-31 18:33:29 -04:00

23 lines
636 B
Docker

FROM "alpine:3.23"
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
RUN apk --no-cache upgrade && \
apk --no-cache add ruby libxslt && \
apk --no-cache add --virtual build-dependencies \
build-base \
libxml2-dev \
libxslt-dev \
ruby-dev && \
echo 'gem: --no-document' > /etc/gemrc && \
gem install json foodcritic --no-rdoc --no-ri && \
gem cleanup && \
apk del build-dependencies && \
rm -rf /usr/lib/ruby/gems/*/cache/* \
/var/cache/apk/* \
/tmp/* \
/var/tmp/*
ENTRYPOINT [ "/usr/bin/foodcritic" ]