-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (34 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
39 lines (34 loc) · 1.16 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
FROM debian:buster-slim
ENV TZ="Europe/Moscow" \
docker="1" \
LC_ALL="ru_RU.UTF-8" \
LANG="ru_RU.UTF-8" \
LANGUAGE="ru_RU.UTF-8"
ADD dist /tmp/src
RUN apt-get update && apt-get install -y \
locales-all \
lsb-base && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
cd /tmp/src && \
tar -xf linux-amd64_deb.tgz && \
linux-amd64_deb/install.sh && \
dpkg -i linux-amd64_deb/cprocsp-stunnel-*.deb && \
cd /bin && \
ln -s /opt/cprocsp/bin/amd64/certmgr && \
ln -s /opt/cprocsp/bin/amd64/cpverify && \
ln -s /opt/cprocsp/bin/amd64/cryptcp && \
ln -s /opt/cprocsp/bin/amd64/csptest && \
ln -s /opt/cprocsp/bin/amd64/csptestf && \
ln -s /opt/cprocsp/bin/amd64/der2xer && \
ln -s /opt/cprocsp/bin/amd64/inittst && \
ln -s /opt/cprocsp/bin/amd64/wipefile && \
ln -s /opt/cprocsp/sbin/amd64/cpconfig && \
ln -s /opt/cprocsp/sbin/amd64/stunnel_thread && \
ln -s /opt/cprocsp/sbin/amd64/stunnel_msspi && \
ln -s /opt/cprocsp/sbin/amd64/stunnel_hsm && \
ln -s /opt/cprocsp/sbin/amd64/stunnel_fork && \
rm -rf /tmp/src
VOLUME [ "/var/opt/cprocsp/keys" ]
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]