summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile35
1 files changed, 35 insertions, 0 deletions
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/