-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (24 loc) · 792 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (24 loc) · 792 Bytes
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
FROM vsc55/apache:php-5.6
LABEL version="1.1" maintainer="vsc55@cerebelum.net" description="Docker webapp loganalyzer"
ARG loganalyzer_ver
ENV loganalyzer_ver=${loganalyzer_ver}
COPY --chown=root:root ["rootfs", "/"]
#Fix, hub.docker.com auto buils
RUN chmod +x /*.sh; \
chown root:root /*.sh; \
chown root:root /data -R; \
chown root:root /data_default -R; \
chown www-data:www-data /var/www/html -R
WORKDIR /var/www/html
HEALTHCHECK --interval=4m --timeout=10s --start-period=30s CMD /health_check.sh
ENV TZ=Europe/Madrid
ENV HTTP_PORT=80
ENV SYSLOG_PORT=514
# Expose HTTP_PORT
EXPOSE ${HTTP_PORT}/tcp
# Expose UDP port 514 for Syslog (UDP)
EXPOSE ${SYSLOG_PORT}/udp
# Define volumes
VOLUME ["/data", "/var/log/syslog"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["start"]