-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
31 lines (24 loc) · 835 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
30
31
FROM jwilder/docker-gen
MAINTAINER Onni Hakala - Geniem Oy. <[email protected]>
# Install openssl for signing certificates
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y openssl
# Set default parameters
ENV GENERATOR="self-signed"\
CERT_FOLDER="/data/certs"\
CA_FOLDER="/data/ca"\
DOCKER_HOST="unix:///tmp/docker.sock"\
PATH="/app/bin/:$PATH"
# Add config files into container
ADD root-files /
# Add start script
ADD docker-entrypoint.sh /
# Create necessary folders to avoid errors
RUN mkdir -p $CERT_FOLDER && mkdir -p $CA_FOLDER
# Remove entrypoint from parent
# Parent image gives many nice features if you want to run it as a tool
# We only want to start this image without many parameters
ENTRYPOINT []
CMD ["/docker-entrypoint.sh"]