1- FROM debian:bullseye -slim
1+ FROM debian:bookworm -slim
22
33SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
44COPY ./docker/apt/sources.list /etc/apt/
55
6- # Install all dependencies in a single layer to reduce image size
76RUN apt-get update && apt-get install -y -qq \
87 wget \
98 git \
109 build-essential \
11- libncurses5-dev \
1210 automake \
1311 autoconf \
1412 curl \
1513 ca-certificates \
14+ libssl3 \
1615 libssl-dev \
1716 libreadline-dev \
1817 libdpkg-perl \
@@ -22,41 +21,39 @@ RUN apt-get update && apt-get install -y -qq \
2221 perl \
2322 procps \
2423 inotify-tools \
25- libssl1.1 \
2624 perl-base \
2725 zlib1g-dev \
28- # Additional dependencies for Erlang build
2926 libncurses-dev \
3027 libsctp-dev \
31- # Documentation tools to prevent build failures
3228 xsltproc \
3329 libxml2-utils \
34- # Dependencies for Ruby 3.2.2
3530 libffi-dev \
3631 libyaml-dev \
3732 && apt-get clean \
3833 && rm -rf /var/lib/apt/lists/*
3934
40- # Set environment variables for Erlang build
4135ENV KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac --without-wx --without-odbc --disable-hipe --without-jinterface --without-docs"
4236ENV KERL_BUILD_DOCS="no"
4337ENV KERL_DOC_TARGETS=""
4438ENV KERL_INSTALL_HTMLDOCS="no"
4539ENV KERL_INSTALL_MANPAGES="no"
4640
47- RUN git clone https://github.com/asdf-vm/asdf.git --branch v0.6.3 "$HOME" /.asdf && \
41+ RUN git clone https://github.com/asdf-vm/asdf.git --branch v0.14.0 "$HOME" /.asdf && \
4842 echo '. $HOME/.asdf/asdf.sh' >> "$HOME" /.bashrc && \
49- echo '. $HOME/.asdf/asdf.sh' >> "$HOME" /.profile
43+ echo '. $HOME/.asdf/asdf.sh' >> "$HOME" /.profile
5044
5145ENV PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin"
46+ ENV GIT_TERMINAL_PROMPT=0
5247
5348RUN mkdir -p /opt/erlang/epp_proxy
5449WORKDIR /opt/erlang/epp_proxy
5550
5651COPY .tool-versions ./
57- RUN asdf plugin-add erlang
58- RUN . $HOME/.asdf/asdf.sh && asdf install
59- RUN asdf global erlang $(grep erlang .tool-versions | cut -d' ' -f2)
60- RUN asdf plugin-add ruby
61- RUN asdf plugin-add rebar
62- RUN asdf install
52+ RUN . "$HOME" /.asdf/asdf.sh && \
53+ asdf plugin add erlang && \
54+ asdf plugin add ruby && \
55+ asdf plugin add rebar && \
56+ asdf install && \
57+ asdf global erlang "$(grep erlang .tool-versions | awk '{print $2}')" && \
58+ asdf global ruby "$(grep ruby .tool-versions | awk '{print $2}')" && \
59+ asdf global rebar "$(grep rebar .tool-versions | awk '{print $2}')"
0 commit comments