-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (23 loc) · 894 Bytes
/
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
# You will need to bind the container's /pki directory somewhere to make any
# practial use of this container as this is where EasyRSA will place it's
# files, including certificates, signing requests, and private keys.
#
# You should take care to restrict access to these files, for what should be
# obvious reasons. Fail to do so at your own risk.
FROM registry.access.redhat.com/ubi9/ubi
RUN dnf makecache &&\
dnf upgrade -y &&\
dnf install -y --allowerasing openssl &&\
dnf clean all
# directory inside the repository that contains the easyrsa script
ARG scriptdir="easyrsa3"
# name of the easyrsa script itself
ARG scriptname="easyrsa"
ENV PATH="/easy-rsa/${scriptdir}:${PATH}"
ENV EASYRSA_PKI="/pki/ca"
# symlink /pki -> /opt/pki to make -v argument sorter, for convenience
RUN mkdir -pv /pki
ADD easy-rsa /easy-rsa
WORKDIR /easy-rsa
ENTRYPOINT ["easyrsa"]
CMD ["help"]