Introduce separate nginx layer

This commit is contained in:
Disassembler 2019-11-15 17:45:34 +01:00
parent 85e8b631a1
commit 692897c9bf
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
8 changed files with 26 additions and 4 deletions

View File

@ -2,10 +2,13 @@ IMAGE cts_0.8.0-190620
LAYER alpine3.9_3.9.4-190620 LAYER alpine3.9_3.9.4-190620
LAYER alpine3.9-python2.7_2.7.16-190620 LAYER alpine3.9-python2.7_2.7.16-190620
LAYER alpine3.9-nginx_1.14.2-191115
FIXLAYER /usr/bin/fix-apk
RUN EOF RUN EOF
# Install runtime dependencies # Install runtime dependencies
apk --no-cache add geos@vm libpq nginx zlib apk --no-cache add geos@vm libpq zlib
# Install build dependencies # Install build dependencies
apk --no-cache add --virtual .deps build-base git postgresql-dev python2-dev py2-pip zlib-dev apk --no-cache add --virtual .deps build-base git postgresql-dev python2-dev py2-pip zlib-dev

View File

@ -1,6 +1,7 @@
IMAGE kanboard_1.2.9-190620 IMAGE kanboard_1.2.9-190620
LAYER alpine3.9_3.9.4-190620 LAYER alpine3.9_3.9.4-190620
LAYER alpine3.9-nginx_1.14.2-191115
LAYER alpine3.9-php7.2_7.2.19-190620 LAYER alpine3.9-php7.2_7.2.19-190620
RUN EOF RUN EOF

View File

@ -2,10 +2,13 @@ IMAGE pandora_0.0.1-190620
LAYER alpine3.9_3.9.4-190620 LAYER alpine3.9_3.9.4-190620
LAYER alpine3.9-python3.6_3.6.8-190620 LAYER alpine3.9-python3.6_3.6.8-190620
LAYER alpine3.9-nginx_1.14.2-191115
FIXLAYER /usr/bin/fix-apk
RUN EOF RUN EOF
# Install runtime dependencies # Install runtime dependencies
apk --no-cache add ffmpeg imagemagick imlib2 libogg libtheora libvpx mkvtoolnix nginx poppler-utils py3-geoip py3-lxml py3-numpy py3-pillow py3-psycopg2 apk --no-cache add ffmpeg imagemagick imlib2 libogg libtheora libvpx mkvtoolnix poppler-utils py3-geoip py3-lxml py3-numpy py3-pillow py3-psycopg2
pip3 install pyinotify pip3 install pyinotify
# Install build dependencies # Install build dependencies

View File

@ -2,10 +2,13 @@ IMAGE sahana_0.0.1-190620
LAYER alpine3.9_3.9.4-190620 LAYER alpine3.9_3.9.4-190620
LAYER alpine3.9-python2.7_2.7.16-190620 LAYER alpine3.9-python2.7_2.7.16-190620
LAYER alpine3.9-nginx_1.14.2-191115
FIXLAYER /usr/bin/fix-apk
RUN EOF RUN EOF
# Install runtime dependencies # Install runtime dependencies
apk --no-cache add geos@vm nginx py-gdal@vm py2-dateutil py2-lxml py2-numpy py2-pillow py2-psycopg2 py2-requests uwsgi-python apk --no-cache add geos@vm py-gdal@vm py2-dateutil py2-lxml py2-numpy py2-pillow py2-psycopg2 py2-requests uwsgi-python
# Install build dependencies # Install build dependencies
apk --no-cache add --virtual .deps build-base git freetype-dev libpng-dev py-numpy-dev py2-pip python2-dev ttf-dejavu apk --no-cache add --virtual .deps build-base git freetype-dev libpng-dev py-numpy-dev py2-pip python2-dev ttf-dejavu

View File

@ -1,6 +1,7 @@
IMAGE seeddms_5.1.9-190620 IMAGE seeddms_5.1.9-190620
LAYER alpine3.9_3.9.4-190620 LAYER alpine3.9_3.9.4-190620
LAYER alpine3.9-nginx_1.14.2-191115
LAYER alpine3.9-php7.2_7.2.19-190620 LAYER alpine3.9-php7.2_7.2.19-190620
LAYER alpine3.9-python3.6_3.6.8-190620 LAYER alpine3.9-python3.6_3.6.8-190620

View File

@ -1,6 +1,7 @@
IMAGE ushahidi_3.12.3-190620 IMAGE ushahidi_3.12.3-190620
LAYER alpine3.9_3.9.4-190620 LAYER alpine3.9_3.9.4-190620
LAYER alpine3.9-nginx_1.14.2-191115
LAYER alpine3.9-php7.2_7.2.19-190620 LAYER alpine3.9-php7.2_7.2.19-190620
RUN EOF RUN EOF

View File

@ -0,0 +1,9 @@
IMAGE alpine3.9-nginx_1.14.2-191115
LAYER alpine3.9_3.9.4-190620
RUN EOF
apk --no-cache add nginx
EOF
CMD nginx -g "daemon off;"

View File

@ -1,9 +1,10 @@
IMAGE alpine3.9-php7.2_7.2.19-190620 IMAGE alpine3.9-php7.2_7.2.19-190620
LAYER alpine3.9_3.9.4-190620 LAYER alpine3.9_3.9.4-190620
LAYER alpine3.9-nginx_1.14.2-191115
RUN EOF RUN EOF
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session apk --no-cache add php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session
EOF EOF
CMD php -a CMD php -a