Dockerfile for PKI
This commit is contained in:
parent
8cab91f51a
commit
34f3747a3b
2 changed files with 52 additions and 0 deletions
25
pki/Dockerfile
Normal file
25
pki/Dockerfile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
FROM debian:wheezy
|
||||
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||||
|
||||
# Install packages ####################################################
|
||||
|
||||
RUN apt-get -y update && \
|
||||
apt-get install -y \
|
||||
pwgen \
|
||||
openssl \
|
||||
&& \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# Copying files #######################################################
|
||||
|
||||
ADD CA.sh openssl.cnf /var/www/fic-server/pki/
|
||||
|
||||
# ENVIRONNEMENT #######################################################
|
||||
|
||||
VOLUME ["/var/www/fic-server/PKI"]
|
||||
|
||||
WORKDIR /var/www/fic-server/pki
|
||||
|
||||
CMD bash ./CA.sh -newca && \
|
||||
bash ./CA.sh -newserver && \
|
||||
bash ./CA.sh -gencrl
|
||||
Reference in a new issue