From dcfa7c526b42d3254a42887c45e3074c22b8eeee Mon Sep 17 00:00:00 2001 From: bretello Date: Tue, 18 Jul 2023 10:39:12 +0200 Subject: [PATCH 1/4] Dockerfile: get rid of libexecinfo (causes crash) --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf199855..c2de19b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.16 AS build -RUN apk add --no-cache msgpack-c ncurses-libs libevent libexecinfo openssl zlib +RUN apk add --no-cache msgpack-c ncurses-libs libevent openssl zlib RUN apk add --no-cache \ autoconf \ @@ -10,7 +10,6 @@ RUN apk add --no-cache \ gcc \ git \ libevent-dev \ - libexecinfo-dev \ linux-headers \ make \ msgpack-c-dev \ @@ -37,7 +36,6 @@ RUN apk add --no-cache \ bash \ gdb \ libevent \ - libexecinfo \ libssh \ msgpack-c \ ncurses-libs \ From 0845c8e84316075ebce55dd1be4586f4009e7e56 Mon Sep 17 00:00:00 2001 From: bretello Date: Tue, 18 Jul 2023 10:39:37 +0200 Subject: [PATCH 2/4] Dockerfile: bump alpine to 3.17.4 Note that the project does not compile on 3.18.2: automake fails to detect msgpack-c --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c2de19b8..38a9e1f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.16 AS build +FROM alpine:3.17.4 AS build RUN apk add --no-cache msgpack-c ncurses-libs libevent openssl zlib From 445127ec46fea704a2693863d7292a9fb4f141ec Mon Sep 17 00:00:00 2001 From: bretello Date: Tue, 18 Jul 2023 10:41:43 +0200 Subject: [PATCH 3/4] Dockerfile: consolidate installs into a single command, cleanup --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38a9e1f2..82fee6b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM alpine:3.17.4 AS build -RUN apk add --no-cache msgpack-c ncurses-libs libevent openssl zlib - RUN apk add --no-cache \ autoconf \ automake \ @@ -9,21 +7,25 @@ RUN apk add --no-cache \ g++ \ gcc \ git \ + libevent \ libevent-dev \ + libssh-dev \ linux-headers \ make \ + msgpack-c \ msgpack-c-dev \ ncurses-dev \ + ncurses-libs \ + openssl \ openssl-dev \ + zlib \ zlib-dev -RUN apk add --no-cache libssh-dev -RUN mkdir -p /src/tmate-ssh-server +WORKDIR /src/tmate-ssh-server COPY . /src/tmate-ssh-server RUN set -ex; \ - cd /src/tmate-ssh-server; \ ./autogen.sh; \ ./configure --prefix=/usr CFLAGS="-D_GNU_SOURCE"; \ make -j "$(nproc)"; \ From 54f590d7b1605da8fe8fb687090d1a0070fac22c Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 21 Jun 2024 13:52:15 +0200 Subject: [PATCH 4/4] Dockerfile: bump alpine to 3.17.7 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82fee6b1..2e33b6ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.17.4 AS build +FROM alpine:3.17.8 AS build RUN apk add --no-cache \ autoconf \ @@ -32,7 +32,7 @@ RUN set -ex; \ make install ### Minimal run-time image -FROM alpine:3.16 +FROM alpine:3.17.8 RUN apk add --no-cache \ bash \