-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
39 lines (31 loc) · 1.26 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
FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive
#add openxpki signing key to apt
RUN apt-get update \
&& apt-get install -y wget \
&& wget http://packages.openxpki.org/debian/Release.key -O - | apt-key add -
#add sources
RUN echo "deb http://packages.openxpki.org/debian/ jessie release" > /etc/apt/sources.list.d/openxpki.list \
&& echo "deb http://httpredir.debian.org/debian jessie non-free" >> /etc/apt/sources.list
#do locale bootstrap
RUN apt-get update \
&& apt-get install -y locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#do package bootstrap
RUN apt-get update \
&& apt-get install -y \
libdbd-mysql-perl \
libapache2-mod-fcgid \
libopenxpki-perl \
openxpki-i18n \
openca-tools \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# turn on apache fastcgi
RUN a2enmod fcgid
ADD config/database.yaml /etc/openxpki/config.d/system/database.yaml
ADD config/openxpki-apache.conf /etc/apache2/conf-enabled/openxpki.conf
ADD scripts/sampleconfig.sh /usr/share/doc/libopenxpki-perl/examples/sampleconfig.sh
ADD scripts/launch.sh /usr/local/bin/launch.sh
CMD [ "/bin/bash", "/usr/local/bin/launch.sh" ]