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