-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 1.22 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
FROM gliderlabs/alpine
MAINTAINER Joeri van Dooren <[email protected]>
# https://pkgs.alpinelinux.org/packages?name=php%25&repo=all&arch=x86_64&maintainer=all
RUN apk --update add apache2 apache2-proxy apache2-proxy-html apache2-ssl libxml2 curl && rm -f /var/cache/apk/* && \
ln -s /usr/lib/libxml2.so.2 /usr/lib/libxml2.so && mkdir /conf && chown -R apache:apache /conf && \
mkdir /run/apache2/ && \
chmod a+rwx /run/apache2/ /etc/ssl/apache2/ /etc/ssl/apache2/*
# Apache config
ADD httpd.conf /etc/apache2/httpd.conf
# ssl conf
ADD ssl.conf /etc/apache2/conf.d/ssl.conf
# Run scripts
ADD scripts/run.sh /scripts/run.sh
RUN mkdir /scripts/pre-exec.d && \
mkdir /scripts/pre-init.d && \
chmod -R 755 /scripts
# Your proxy conf
ADD conf/proxy.conf /conf/proxy.conf
# Exposed Port
EXPOSE 8080
# VOLUME /conf
WORKDIR /conf
ENTRYPOINT ["/scripts/run.sh"]
# Set labels used in OpenShift to describe the builder images
LABEL io.k8s.description="Alpine linux based Apache PHP Container" \
io.k8s.display-name="alpine apache php" \
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,html,apache,php" \
io.openshift.min-memory="1Gi" \
io.openshift.min-cpu="1" \
io.openshift.non-scalable="false"