Modify the Dockerfile for TLS support. - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 2f68d11cbcca3d8d0a6d6488de48bca802c3090d
DIR parent be50f346fca51181200fb47530981c722ed574d9
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 30 Sep 2020 21:48:47 +0200
Modify the Dockerfile for TLS support.
Thanks 0x1b1!
Diffstat:
M docker/Dockerfile | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
---
DIR diff --git a/docker/Dockerfile b/docker/Dockerfile
@@ -1,17 +1,14 @@
-FROM debian AS build
+FROM alpine AS build
WORKDIR /usr/local/src/geomyidae
-RUN apt-get update && apt-get install -y gcc make git
+RUN apk update && apk add build-base libressl-dev git
RUN git clone git://bitreich.org/geomyidae /usr/local/src/geomyidae
-# Debian sucks at LibreSSL. Maybe find some other base image?
-RUN make TLS_CFLAGS= TLS_LDFLAGS=
+RUN make
-FROM debian
-
-ENV HOST 0.0.0.0
+FROM alpine
COPY --from=build /usr/local/src/geomyidae/geomyidae /usr/local/sbin/geomyidae
EXPOSE 70
-CMD geomyidae -d -h $HOST
+CMD geomyidae -d -h 0.0.0.0