mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 07:37:15 +03:00
It is weird that when invoking sslh, that it daemonizess in foreground by default. This should always be a user choice, and if not, it should be a program default. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
24 lines
364 B
Docker
24 lines
364 B
Docker
FROM alpine:latest as build
|
|
|
|
WORKDIR /sslh
|
|
|
|
COPY . /sslh
|
|
RUN \
|
|
apk add \
|
|
gcc \
|
|
libconfig-dev \
|
|
make \
|
|
musl-dev \
|
|
pcre2-dev \
|
|
perl && \
|
|
make sslh-select && \
|
|
strip sslh-select
|
|
|
|
FROM alpine:latest
|
|
|
|
COPY --from=build "/sslh/sslh-select" "/usr/local/bin/sslh"
|
|
|
|
RUN apk --no-cache add libconfig pcre2
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/sslh" ]
|