File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
- FROM ruby:2.6-stretch
1
+ FROM ruby:2-slim-bullseye
2
2
3
- MAINTAINER Sebastian Weisgerber <weisgerber@cispa.saarland>
3
+ MAINTAINER Sebastian Weisgerber <weisgerber@cispa.de>
4
+
5
+ ARG DEBIAN_FRONTEND="noninteractive"
4
6
5
7
# otherwise can see some encoding issues:
6
8
# https://oncletom.io/2015/docker-encoding/
7
9
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 \
15
22
build-essential \
16
23
curl \
17
24
lftp \
@@ -22,13 +29,7 @@ RUN apt-get install -y \
22
29
imagemagick \
23
30
python3 \
24
31
virtualenv \
25
- python-pip \
26
32
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
33
34
34
35
CMD [ "irb" ]
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- docker build -t rubyll:latest .
2
+ docker buildx build ./ -t rubyll:latest
You can’t perform that action at this time.
0 commit comments