Skip to content

Commit dfc3682

Browse files
Updated to minimal supported ruby version
1 parent f7e545e commit dfc3682

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

Dockerfile

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
FROM ruby:2.6-stretch
1+
FROM ruby:2-slim-bullseye
22

3-
MAINTAINER Sebastian Weisgerber <weisgerber@cispa.saarland>
3+
MAINTAINER Sebastian Weisgerber <weisgerber@cispa.de>
4+
5+
ARG DEBIAN_FRONTEND="noninteractive"
46

57
# otherwise can see some encoding issues:
68
# https://oncletom.io/2015/docker-encoding/
79
ENV LANG=C.UTF-8
8-
9-
RUN apt-get update
10-
RUN curl -sL http://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - &&\
11-
echo "deb http://deb.nodesource.com/node_8.x stretch main" > /etc/apt/sources.list.d/nodesource.list &&\
12-
echo "deb-src http://deb.nodesource.com/node_8.x stretch main" >> /etc/apt/sources.list.d/nodesource.list
13-
RUN apt-get update
14-
RUN apt-get install -y \
10+
ENV RACK_ENV="production" \
11+
RAILS_ENV="production"
12+
# environment settings
13+
RUN apt-get update \
14+
&& apt-get install -y \
15+
build-essential \
16+
curl \
17+
&& curl -sL http://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
18+
&& echo "deb http://deb.nodesource.com/node_18.x bullseye main" > /etc/apt/sources.list.d/nodesource.list \
19+
&& echo "deb-src http://deb.nodesource.com/node_18.x bullseye main" >> /etc/apt/sources.list.d/nodesource.list \
20+
&& apt-get update \
21+
&& apt-get install -y \
1522
build-essential \
1623
curl \
1724
lftp \
@@ -22,13 +29,7 @@ RUN apt-get install -y \
2229
imagemagick \
2330
python3 \
2431
virtualenv \
25-
python-pip \
2632
python3-pip \
27-
nodejs \
28-
npm
29-
RUN rm -f /usr/bin/python && ln -s /usr/bin/python3.5 /usr/bin/python
30-
31-
ENV RACK_ENV="production" \
32-
RAILS_ENV="production"
33+
nodejs
3334

3435
CMD [ "irb" ]

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
docker build -t rubyll:latest .
2+
docker buildx build ./ -t rubyll:latest

0 commit comments

Comments
 (0)