@@ -20,20 +20,20 @@ RUN /bin/bash -e /security_updates.sh && \
20
20
# Overlay the root filesystem from this repo
21
21
COPY ./container/root /
22
22
23
- # Set nginx to listen on defined port
24
- # NOTE: order of operations is important, new config had to already installed from repo (above)
23
+ # - Set nginx to listen on defined port
24
+ # - NOTE: order of operations is important, new config had to already installed from repo (above)
25
+ # - Make temp directory for .nginx runtime files
26
+ # - Update nginx.conf user
27
+ # - Some operations can be completely removed once this ticket is resolved:
28
+ # - https://trac.nginx.org/nginx/ticket/1243
29
+ # - Remove older WOFF mime-type
30
+ # - Add again with newer mime-type
31
+ # - Also add mime-type for WOFF2
25
32
RUN sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE && \
26
- # Make temp directory for .nginx runtime files \
27
33
mkdir /tmp/.nginx && \
28
- # Update nginx.conf user
29
34
sed -i "s/^user .*$/user ${NOT_ROOT_USER};/" ${CONF_NGINX_SERVER} && \
30
- # Next three operations can be completely removed once this ticket is resolved:
31
- # https://trac.nginx.org/nginx/ticket/1243
32
- # Remove older WOFF mime-type
33
35
sed -i "/application\/font-woff/d" /etc/nginx/mime.types && \
34
- # Add again with newer mime-type
35
36
sed -i "s/}/\n font\/woff woff;&/" /etc/nginx/mime.types && \
36
- # Also add mime-type for WOFF2
37
37
sed -i "s/}/\n font\/woff2 woff2;\n&/g" /etc/nginx/mime.types
38
38
39
39
RUN goss -g /tests/centos/nginx.goss.yaml validate && \
0 commit comments