summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-12-21 23:18:37 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-12-21 23:18:37 +0100
commit8c104a497d9dee7e65aec260748f2e265138555c (patch)
tree98eb16393653597e02a8769ba0cebfe92f02b834
parent8e5defaf4bb64b1bd934a15952097bcf493d9763 (diff)
Add Telescope-0.8.1
-rw-r--r--Telescope/0.8.1/Dockerfile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Telescope/0.8.1/Dockerfile b/Telescope/0.8.1/Dockerfile
new file mode 100644
index 0000000..2487fe5
--- /dev/null
+++ b/Telescope/0.8.1/Dockerfile
@@ -0,0 +1,28 @@
+FROM alpine
+RUN apk update && apk add \
+ autoconf \
+ automake \
+ gettext \
+ pkgconfig \
+ make \
+ gcc \
+ musl-dev \
+ wget
+COPY --from=libopenssl:3.1.1-minimal /opt/spm/openssl-3.1.1/ /usr/local/
+COPY --from=liblibretls:3.8.1 /opt/spm/libretls-3.8.1/ /usr/local/
+COPY --from=libevent:2.1.12 /opt/spm/libevent-2.1.12/ /usr/local/
+COPY --from=libncurses:6.3 /opt/spm/ncurses-6.3/ /usr/local/
+COPY --from=libbison:3.8.2 /opt/spm/bison-3.8.2/ /usr/local/
+RUN wget https://codeberg.org/op/telescope/archive/0.8.1.tar.gz
+RUN tar -xf 0.8.1.tar.gz
+WORKDIR /telescope
+ARG PREFIX=/opt/spm/telescope-0.8.1
+RUN ./autogen.sh
+RUN ./configure \
+ --prefix=$PREFIX \
+ CFLAGS='-ffunction-sections -fdata-sections -Os' \
+ LDFLAGS="-Wl,--gc-sections -static" \
+ LIBS="-lssl -lcrypto"
+RUN make -j$(nproc --all)
+RUN make install
+RUN strip $PREFIX/bin/telescope