]> git.gsnw.org Git - fping.git/commitdiff
Dockerfile for fping
authordarless1 <3382617+darless1@users.noreply.github.com>
Tue, 6 Dec 2022 18:52:41 +0000 (12:52 -0600)
committerDavid Schweikert <david@schweikert.ch>
Thu, 7 Sep 2023 06:48:53 +0000 (08:48 +0200)
.dockerignore [new file with mode: 0644]
Dockerfile [new file with mode: 0644]

diff --git a/.dockerignore b/.dockerignore
new file mode 100644 (file)
index 0000000..d4d2ab9
--- /dev/null
@@ -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 (file)
index 0000000..dbdda2b
--- /dev/null
@@ -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