diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-10-12 11:21:12 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-10-12 11:21:12 +0200 |
commit | 8e7b0992430f6a52bdfa9a3ef3d87b768bc87f16 (patch) | |
tree | 54b59216ff8d1750dfccbd6dc14a17f70fb8c562 | |
parent | e3e247fcb6b8bf89af36cb149c670d40e47a01d9 (diff) |
add a dockerfile
-rw-r--r-- | Dockerfile | 35 |
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/ |