cleanup and use build args
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
282593555a
commit
341e29bb43
@ -1,18 +1,18 @@
|
|||||||
FROM alpine:3.14
|
FROM alpine:3.14
|
||||||
|
|
||||||
MAINTAINER Hanjo Meinhardt <hanjo@bunix.de>
|
LABEL org.opencontainers.image.authors="hanjo@bunix.de"
|
||||||
|
|
||||||
ENV dev_packages="ca-certificates build-base libffi-dev ruby-dev ruby-rdoc ruby-irb gcc make musl-dev"
|
ENV dev_packages="ca-certificates build-base libffi-dev ruby-dev ruby-rdoc ruby-irb gcc make musl-dev"
|
||||||
|
|
||||||
RUN apk update && apk upgrade \
|
RUN apk add --no-cache ruby ruby-json libffi libstdc++ ${dev_packages} \
|
||||||
&& apk add ruby ruby-json libffi libstdc++ ${dev_packages} \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
RUN gem install jekyll -v <VERSION> \
|
ARG JEKYLL_VERSION
|
||||||
|
RUN gem install jekyll -v ${JEKYLL_VERSION} \
|
||||||
&& gem install jekyll-paginate \
|
&& gem install jekyll-paginate \
|
||||||
&& gem install jekyll-auto-image \
|
&& gem install jekyll-auto-image \
|
||||||
&& gem install jekyll-tidy \
|
&& gem install jekyll-tidy \
|
||||||
&& gem install jekyll-sitemap \
|
&& gem install jekyll-sitemap \
|
||||||
&& gem install bigdecimal
|
&& gem install bigdecimal
|
||||||
|
|
||||||
RUN apk del ${dev_packages}
|
RUN apk del ${dev_packages}
|
||||||
|
Loading…
Reference in New Issue