1- FROM openjdk:15-buster
1+ # can't use bookworm (latest LTS as of June23) yet, as elixir/erlang does not provide packages for it yet. Check if https://binaries.erlang-solutions.com/debian/dists/bookworm/ is available to change this
2+ FROM openjdk:21-bullseye
23
34RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates ssh bash
45
6+ COPY scripts/build ./scripts
7+
58ENV GOLANG_VERSION 1.17
69
710RUN set -eux; \
@@ -50,10 +53,10 @@ ENV GO111MODULE=on
5053
5154RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
5255
53- RUN curl -sL https://deb.nodesource.com/setup_15 .x | bash - && apt-get install -y nodejs
56+ RUN curl -sL https://deb.nodesource.com/setup_20 .x | bash - && apt-get install -y nodejs
5457# the following is a workaround for openjdk-11-jre-headless erroring due to not having a man path in slim-debian
5558RUN apt-get update -y
56- RUN apt-get install -y --no-install-recommends python3 python3-dev python3-pip ruby jq gnupg git gettext libffi6 libffi-dev libssl-dev php composer php-curl php7.3-tokenizer php-dom php-xml php-simplexml php-xmlwriter maven pkg-config
59+ RUN apt-get install -y --no-install-recommends python3 python3-dev python3-pip ruby jq gnupg git gettext libffi-dev libssl-dev php composer php-curl php-dom php-xml php-simplexml php-xmlwriter maven pkg-config twine
5760# RUN apk add -U --no-cache ca-certificates bash nodejs npm python3 python3-dev py-pip ruby jq build-base gnupg git openssh curl gettext libffi libffi-dev openssl-dev php composer php-curl php7-tokenizer wget php-dom php-xml php-simplexml php-xmlwriter maven
5861
5962# https://stackoverflow.com/questions/35736598/cannot-pip-install-cryptography-in-docker-alpine-linux-3-3-with-openssl-1-0-2g
@@ -72,8 +75,6 @@ RUN apt-get install -y --no-install-recommends python3 python3-dev python3-pip r
7275RUN npm install -g npm@7.21.0
7376RUN npm i -g @openapitools/openapi-generator-cli
7477RUN openapi-generator-cli version-manager set 5.2.1
75- RUN python3 -m pip install --upgrade pip
76- RUN python3 -m pip install --user --upgrade setuptools wheel twine
7778
7879# dotnet
7980ENV PATH "$PATH:/root/.dotnet"
@@ -88,19 +89,10 @@ RUN apt-get install -y --no-install-recommends \
8889 && rm dotnet-install.sh
8990
9091# dart
91- RUN \
92- apt-get -q update && apt-get install --no-install-recommends -y -q gnupg2 curl git ca-certificates apt-transport-https openssh-client && \
93- curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
94- curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \
95- apt-get update && \
96- apt-get install dart=2.19.6-1
92+ RUN ./scripts/install-dart.sh
9793
9894# elixir
99- RUN \
100- wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && \
101- dpkg -i erlang-solutions_2.0_all.deb && \
102- apt-get -q update && apt-get install --no-install-recommends -y -q esl-erlang elixir && \
103- rm erlang-solutions_2.0_all.deb && \
95+ RUN apt-get -q update && apt-get install -y -q elixir && \
10496 mix local.hex --force
10597
10698# rust
@@ -124,7 +116,7 @@ RUN td=$(mktemp) \
124116
125117RUN gem install bundler -v 2.3.26 && \
126118 apt-get update && \
127- apt-get install -y --no-install-recommends ruby-dev
119+ apt-get install -y --no-install-recommends ruby-dev=1:2.7+2
128120
129121ADD go.mod go.mod
130122ADD go.sum go.sum
@@ -133,4 +125,3 @@ RUN go build -o /usr/local/bin/ory github.com/ory/cli
133125RUN swagger version
134126RUN ory version
135127
136- ENTRYPOINT /bin/bash
0 commit comments