-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (34 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
50 lines (34 loc) · 1.05 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# cp -r ~/csp/ .
# docker build -t pycades-build .
ARG PYTHON_VER=3.12
FROM python:${PYTHON_VER}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
cmake \
build-essential \
libboost-all-dev \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
RUN update-ca-certificates
COPY csp csp
RUN ./csp/install.sh
RUN apt-get update && apt-get install -y --no-install-recommends \
./csp/cprocsp-rdr-gui-gtk* \
./csp/lsb-cprocsp-devel* \
./csp/cprocsp-legacy* \
./csp/cprocsp-pki-cades* && \
rm -rf /var/lib/apt/lists/*
COPY . /pycades/
WORKDIR /pycades
RUN (SCRIPTS_DIR=./tests/scripts && \
chmod +x ${SCRIPTS_DIR}/*.sh && \
${SCRIPTS_DIR}/setup-root.sh && \
${SCRIPTS_DIR}/setup-leaf.sh && \
${SCRIPTS_DIR}/setup-crl.sh) > /dev/null 2>&1
# check install via pip
ENV PIP_ROOT_USER_ACTION=ignore
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
RUN pip install -v .
# docker run pycades-build python3 samples/sign_verify.py