From 55ad83898f6abc4377dbf73a833fdb1874e25091 Mon Sep 17 00:00:00 2001 From: darless1 <3382617+darless1@users.noreply.github.com> Date: Tue, 6 Dec 2022 12:52:41 -0600 Subject: [PATCH] Dockerfile for fping --- .dockerignore | 30 ++++++++++++++++++++++++++++++ Dockerfile | 16 ++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d4d2ab9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,30 @@ +.*.swp +*.tar.gz +*~ +src/*.gcno +src/*.gcda +src/*.gcov +src/tags +.deps +Makefile +Makefile.in +aclocal.m4 +autom4te.cache +compile +config.guess +config.h +config.h.in +config.log +config.status +config.sub +configure +depcomp +install-sh +missing +src/*.o +src/fping +src/fping6 +stamp-h1 +doc/fping.8 +doc/fping6.8 +ci/build diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dbdda2b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:20.04 + +# Base +RUN apt-get update && apt-get install -y \ + build-essential \ + automake \ + m4 + +# Add source code +COPY ./ /app + +# Compile +WORKDIR /app +RUN autoreconf --install +RUN ./configure && make && make install +ENTRYPOINT ["fping"] \ No newline at end of file