jekyllsitebuilder/Dockerfile

31 lines
820 B
Docker
Raw Normal View History

2023-02-09 10:26:59 +00:00
FROM ruby:3.1-buster as builder
# I sort of hate that this is duped in .drone.yml and here.
# note that if you update one, you probably have to update the other.
RUN apt update && apt install -y \
bsdmainutils \
build-essential \
make \
bundler \
ghostscript \
imagemagick \
libxml2-dev \
libxslt-dev \
pkg-config
2023-02-10 13:16:49 +00:00
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
2023-02-09 10:26:59 +00:00
2023-02-10 13:16:49 +00:00
ADD ./Gemfile* ./
2023-02-09 10:26:59 +00:00
2023-02-10 13:16:49 +00:00
RUN npm install -g npm && \
npm install -g yarn && \
2023-02-09 10:26:59 +00:00
echo "gem: --no-ri --no-rdoc" > ~/.gemrc && \
yes | gem update --system && \
gem install bundler && \
bundle install && \
yarn global add \
2023-02-10 13:16:49 +00:00
https://github.com/netlify/cli#a3528d2a679807722de40b1dd87200176b121dbd && \
netlify --telemetry-disable && \
bundle install