Skip to content

Commit 69969fc

Browse files
committed
Update Dockerfile for Ruby 3.1
While working on Ruby 3 support several months ago, I noticed the [Dockerfile](https://github.com/jekyll/classifier-reborn/blob/c3e5a84c3e0915d20ab52f2b783703575584d4a2/Dockerfile) was really stale. I didn't immediately fix this at the time, but made a mental note to come back to it sometime. This Dockerfile is intended to be used for development. It was added in jekyll#104 (discussed in detail at jekyll#101). The documentation for using this is still available (and accurate) at https://jekyll.github.io/classifier-reborn/development#development-using-docker. classifier-reborn currently supports ruby 2.7, 3.0, and 3.1 (as you can see in `ci.yml`). Since we can only (easily) put one ruby version in the Dockerfile, using the most recent version made sense to me. Doing so means we have to use Numo instead of GSL since GSL isn't currently supported on Ruby 3.x.
1 parent d54ec5d commit 69969fc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM ruby:2.4
2-
MAINTAINER Sawood Alam <https://github.com/ibnesayeed>
1+
FROM ruby:3.1
32

43
ENV LANG C.UTF-8
54

6-
RUN apt update && apt install -y libgsl0-dev && rm -rf /var/lib/apt/lists/*
7-
RUN gem install narray nmatrix gsl jekyll github-pages
5+
RUN apt update && apt install -y liblapacke-dev libopenblas-dev && rm -rf /var/lib/apt/lists/*
6+
RUN gem install numo-narray numo-linalg jekyll github-pages
87

98
RUN cd /tmp \
109
&& wget http://download.redis.io/redis-stable.tar.gz \

0 commit comments

Comments
 (0)