forked from devilbox/docker-php-fpm-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-5.5
80 lines (61 loc) · 2.38 KB
/
Dockerfile-5.5
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#--------------------------------------------------------------------------------------------------
# Default skeleton
#--------------------------------------------------------------------------------------------------
###
### Base image
###
FROM devilbox/php-fpm:5.5-work
###
### Will be populated by Makefile call (e.g. linux/amd64 or linux/arm64)
###
ARG ARCH
###
### Labels
###
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
# The following commented labels will be auto-created by the Makefile command.
#LABEL "org.opencontainers.image.created"=""
#LABEL "org.opencontainers.image.version"=""
#LABEL "org.opencontainers.image.revision"=""
LABEL "maintainer"="cytopia <[email protected]>"
LABEL "org.opencontainers.image.authors"="cytopia <[email protected]>"
LABEL "org.opencontainers.image.url"="https://github.com/devilbox/docker-php-fpm-community"
LABEL "org.opencontainers.image.documentation"="https://github.com/devilbox/docker-php-fpm-community"
LABEL "org.opencontainers.image.source"="https://github.com/devilbox/docker-php-fpm-community"
LABEL "org.opencontainers.image.vendor"="devilbox"
LABEL "org.opencontainers.image.licenses"="MIT"
LABEL "org.opencontainers.image.ref.name"="5.5-community"
LABEL "org.opencontainers.image.title"="PHP-FPM 5-community"
LABEL "org.opencontainers.image.description"="PHP-FPM 5.5-community"
#--------------------------------------------------------------------------------------------------
# START OF CUSTOM CODE
#--------------------------------------------------------------------------------------------------
RUN set -eux \
&& if [ "$(dpkg-architecture --query DEB_BUILD_ARCH_CPU)" = "arm64" ]; then \
printf '#!/bin/sh\necho "not available"\n' > /usr/local/bin/ansible; \
chmod +x /usr/local/bin/ansible; \
else \
pip install ansible; \
fi
#--------------------------------------------------------------------------------------------------
# END OF CUSTOM CODE
#--------------------------------------------------------------------------------------------------
###
### Default upstream volumes
###
VOLUME /shared/backups
VOLUME /var/log/php
VOLUME /var/mail
###
### Default upstream ports
###
EXPOSE 9000
###
### Default upstream workdir
###
WORKDIR /shared/httpd
###
### Default upstream Entrypoint
###
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
ENTRYPOINT ["/docker-entrypoint.sh"]