update unit to 1.12, serve multiple ports
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# DO NOT EDIT: created by update.sh from Dockerfile-unit.template
|
||||
FROM eumau/nginx-unit:1.11.0-php7.3
|
||||
FROM eumau/nginx-unit:1.12.0-php7.3
|
||||
|
||||
# entrypoint.sh and cron.sh dependencies
|
||||
RUN set -ex; \
|
||||
@@ -63,7 +63,7 @@ RUN { \
|
||||
VOLUME /var/www/html
|
||||
|
||||
|
||||
ENV NEXTCLOUD_VERSION 16.0.4
|
||||
ENV NEXTCLOUD_VERSION 16.0.5
|
||||
|
||||
RUN set -ex; \
|
||||
fetchDeps=" \
|
||||
@@ -103,8 +103,11 @@ RUN \
|
||||
&& unitd --control unix:/var/run/control.unit.sock \
|
||||
&& curl -X PUT --data-binary \
|
||||
'{ \
|
||||
"listeners": { "*:9000": { "pass": "routes" } }, \
|
||||
"routes": [ \
|
||||
"listeners": { "*:9000": { "pass": "routes/main" } }, \
|
||||
"listeners": { "*:9001": { "pass": "routes/dynamic" } }, \
|
||||
"listeners": { "*:9002": { "pass": "routes/static" } }, \
|
||||
"routes": {\
|
||||
"main": [ \
|
||||
{ "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||
{ "match": { "uri": "/cron.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||
{ "match": { "uri": "/index.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||
@@ -119,6 +122,13 @@ RUN \
|
||||
{ "match": { "uri": "/themes/*" }, "action": { "share": "/var/www/html" } }, \
|
||||
{ "action": { "pass": "applications/index_php" } } \
|
||||
], \
|
||||
"static": [
|
||||
{ "action": { "share": "/var/www/html" } } \
|
||||
],
|
||||
"dynamic": [
|
||||
{ "action": { "pass": "applications/index_php" } } \
|
||||
],
|
||||
},
|
||||
"applications": { \
|
||||
"index_php": { \
|
||||
"type": "php", \
|
||||
@@ -143,7 +153,7 @@ RUN \
|
||||
rm /var/www/html/index.php /var/www/html/index.php.remove; \
|
||||
}
|
||||
|
||||
EXPOSE 9000
|
||||
EXPOSE 9000 9001 9002
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
STOPSIGNAL SIGTERM
|
||||
CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]
|
||||
|
||||
Reference in New Issue
Block a user