File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,15 @@ RUN sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE && \
30
30
bash -c "chown www-data:www-data /var/{lib,log}/nginx -Rh" && \
31
31
bash -c "chmod 0755 -R /var/{lib,log}/nginx" && \
32
32
# Make temp directory for .nginx runtime files \
33
- mkdir /tmp/.nginx
33
+ mkdir /tmp/.nginx && \
34
+ # Next three operations can be completely removed once this ticket is resolved:
35
+ # https://trac.nginx.org/nginx/ticket/1243
36
+ # Remove older WOFF mime-type
37
+ sed -i "/application\/font-woff/d" /etc/nginx/mime.types && \
38
+ # Add again with newer mime-type
39
+ sed -i "s/}/\n font\/woff woff;&/" /etc/nginx/mime.types && \
40
+ # Also add mime-type for WOFF2
41
+ sed -i "s/}/\n font\/woff2 woff2;\n&/g" /etc/nginx/mime.types
34
42
35
43
RUN goss -g /tests/nginx/base.goss.yaml validate && \
36
44
/aufs_hack.sh
You can’t perform that action at this time.
0 commit comments