From 8e7b0992430f6a52bdfa9a3ef3d87b768bc87f16 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <daniel.friesel@uos.de>
Date: Wed, 12 Oct 2022 11:21:12 +0200
Subject: add a dockerfile

---
 Dockerfile | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Dockerfile

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..80b609a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,35 @@
+# docker build -t dfatool:latest .
+
+FROM debian:buster-slim as files
+
+COPY bin/ /dfatool/bin/
+COPY lib/ /dfatool/lib/
+COPY ext/ /dfatool/ext/
+
+RUN sed -i 's/charset is "C"/charset == "C"/' /dfatool/bin/dfatool/pubcode/code128.py
+
+FROM debian:bullseye
+
+ARG DEBIAN_FRONTEND=noninteractive
+ARG APT_LISTCHANGES_FRONTEND=none
+
+WORKDIR /dfatool
+
+RUN apt-get update \
+	&& apt-get -y --no-install-recommends install \
+		ca-certificates \
+		python3-dev \
+		python3-coverage \
+		python3-frozendict \
+		python3-matplotlib \
+		python3-numpy \
+		python3-pytest \
+		python3-pytest-cov \
+		python3-scipy \
+		python3-sklearn \
+		python3-ubjson \
+		python3-yaml \
+		python3-zbar \
+	&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*
+
+COPY --from=files /dfatool/ /dfatool/
-- 
cgit v1.2.3