mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-04 18:58:09 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 65634bce18 |
+13
-18
@@ -19,7 +19,7 @@ RUN source /os-release && \
|
|||||||
mkdir /install_root \
|
mkdir /install_root \
|
||||||
&& swupd os-install -V ${VERSION_ID} \
|
&& swupd os-install -V ${VERSION_ID} \
|
||||||
--path /install_root --statedir /swupd-state \
|
--path /install_root --statedir /swupd-state \
|
||||||
--bundles=nginx-mainline --no-boot-update
|
--bundles=nginx --no-boot-update
|
||||||
|
|
||||||
# For some Host OS configuration with redirect_dir on,
|
# For some Host OS configuration with redirect_dir on,
|
||||||
# extra data are saved on the upper layer when the same
|
# extra data are saved on the upper layer when the same
|
||||||
@@ -33,26 +33,21 @@ RUN cd / && \
|
|||||||
FROM core
|
FROM core
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
COPY default.conf /etc/nginx-mainline/conf.d/default.conf
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# create directories for nginx-mainline
|
# create directories for nginx
|
||||||
RUN mkdir -p /var/www/html && \
|
RUN mkdir -p /var/www/html && \
|
||||||
mkdir -p /etc/nginx-mainline && \
|
mkdir -p /etc/nginx && \
|
||||||
mkdir -p /var/log/nginx-mainline && \
|
mkdir -p /var/log/nginx && \
|
||||||
mkdir -p /var/lib/nginx-mainline/uwsgi && \
|
mkdir -p /var/lib/nginx/uwsgi && \
|
||||||
mkdir -p /var/lib/nginx-mainline/client-body && \
|
mkdir -p /var/lib/nginx/client-body && \
|
||||||
mkdir -p /var/lib/nginx-mainline/proxy && \
|
mkdir -p /var/lib/nginx/proxy && \
|
||||||
mkdir -p /var/lib/nginx-mainline/fast-cgi && \
|
mkdir -p /var/lib/nginx/fast-cgi && \
|
||||||
# add links to make it compatible with general name nginx
|
|
||||||
ln -sf /var/log/nginx-mainline /var/log/nginx && \
|
|
||||||
ln -sf /var/lib/nginx-mainline /var/lib/nginx && \
|
|
||||||
ln -sf /etc/nginx-mainline /etc/nginx && \
|
|
||||||
ln -sf /usr/bin/nginx-mainline /usr/bin/nginx && \
|
|
||||||
# forward request and error logs to docker log collector
|
# forward request and error logs to docker log collector
|
||||||
ln -sf /dev/stdout /var/log/nginx-mainline/access.log && \
|
ln -sf /dev/stdout /var/log/nginx/access.log && \
|
||||||
ln -sf /dev/stderr /var/log/nginx-mainline/error.log && \
|
ln -sf /dev/stderr /var/log/nginx/error.log && \
|
||||||
cp -f /usr/share/nginx-mainline/conf/nginx.conf.example /etc/nginx-mainline/nginx.conf && \
|
cp -f /usr/share/nginx/conf/nginx.conf.example /etc/nginx/nginx.conf && \
|
||||||
cp -f /usr/share/nginx-mainline/html/* /var/www/html/
|
cp -f /usr/share/nginx/html/* /var/www/html/
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|||||||
+1
-1
@@ -3,6 +3,6 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
access_log /var/log/nginx-mainline/access.log combined;
|
access_log /var/log/nginx/access.log combined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
. ../docker-hooks.sh
|
. ../docker-hooks.sh
|
||||||
|
|
||||||
image="clearlinux/nginx"
|
image="clearlinux/nginx"
|
||||||
package=nginx-mainline
|
package=nginx
|
||||||
|
|
||||||
do_tag $image $package
|
do_tag $image $package
|
||||||
|
|||||||
Reference in New Issue
Block a user