Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile.client
31 changes: 31 additions & 0 deletions Dockerfile.client
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# docker build -t fwknop -f Dockerfile.client .
# docker run -v $HOME/.fwknoprc:/root/.fwknoprc --rm fwknop
FROM alpine AS build

RUN apk add autoconf gcc automake libtool make musl-dev libpcap texinfo

RUN mkdir /src

WORKDIR /src

COPY . .

# https://github.com/mrash/fwknop/issues/305
# ENV CFLAGS="-fcommon"

RUN autoreconf -fvi

RUN ./configure --disable-server CFLAGS="-fcommon"
RUN make
RUN make install

########################

FROM alpine:latest
# The wget that is installed does not support --secure-protocol!
RUN apk add wget
COPY --from=build /usr/local/bin/fwknop /usr/local/bin/fwknop
COPY --from=build /usr/local/lib/libfko* /usr/local/lib/


ENTRYPOINT [ "/usr/local/bin/fwknop" ]