summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 8da5bb5fc66dea27b5bf5108d6f54ce706c9e86b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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-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/