Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dockerfile for client #326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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" ]