-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
69 lines (54 loc) · 1.24 KB
/
Dockerfile
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM debian:testing-slim
# install prerequisites
RUN apt-get update \
&& \
apt-get upgrade --assume-yes \
&& \
apt-get install --assume-yes --option 'APT::Install-Recommends=false' \
ca-certificates \
openssl \
certbot \
nginx \
curl \
sslscan \
testssl.sh \
gettext-base \
coreutils \
lsof \
procps \
psmisc \
util-linux \
less \
nano \
man-db \
&& \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& \
apt-get upgrade --assume-yes \
&& \
apt-get install --assume-yes --option 'APT::Install-Recommends=false' \
openjdk-17-jdk-headless \
maven \
&& \
rm -rf /var/lib/apt/lists/*
# copy tls-playground files
COPY . "/opt/tls-playground/"
RUN ln --symbolic --force /opt/tls-playground/.bashrc /etc/bash.bashrc
# define interface
WORKDIR "/opt/tls-playground"
ENV LANG=C.UTF-8
ENV EDITOR="/usr/bin/nano"
ENV TP_COLOR="yes"
ENV TP_PASS=""
ENV TP_SERVER_DOMAIN="localhost"
ENV TP_SERVER_LISTEN_ADDRESS="127.0.0.1"
ENV TP_SERVER_HTTP_PORT=8080
ENV TP_SERVER_HTTPS_PORT=8443
ENV TP_ACME_SERVER_URL="lets-encrypt-staging"
ENV TP_ACME_ACCOUNT_EMAIL=""
ENTRYPOINT ["/usr/bin/bash"]
CMD []
VOLUME ["/opt/tls-playground"]
EXPOSE 8080
EXPOSE 8443