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
2
3
3
4
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates ssh bash
4
5
6
+ COPY scripts/build ./scripts
7
+
5
8
ENV GOLANG_VERSION 1.17
6
9
7
10
RUN set -eux; \
@@ -50,10 +53,10 @@ ENV GO111MODULE=on
50
53
51
54
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
52
55
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
54
57
# the following is a workaround for openjdk-11-jre-headless erroring due to not having a man path in slim-debian
55
58
RUN 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
57
60
# 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
58
61
59
62
# 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
72
75
RUN npm install -g
[email protected]
73
76
RUN npm i -g @openapitools/openapi-generator-cli
74
77
RUN 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
77
78
78
79
# dotnet
79
80
ENV PATH "$PATH:/root/.dotnet"
@@ -88,19 +89,10 @@ RUN apt-get install -y --no-install-recommends \
88
89
&& rm dotnet-install.sh
89
90
90
91
# 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
97
93
98
94
# 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 && \
104
96
mix local.hex --force
105
97
106
98
# rust
@@ -124,7 +116,7 @@ RUN td=$(mktemp) \
124
116
125
117
RUN gem install bundler -v 2.3.26 && \
126
118
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
128
120
129
121
ADD go.mod go.mod
130
122
ADD go.sum go.sum
@@ -133,4 +125,3 @@ RUN go build -o /usr/local/bin/ory github.com/ory/cli
133
125
RUN swagger version
134
126
RUN ory version
135
127
136
- ENTRYPOINT /bin/bash
0 commit comments