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 @@ -41,7 +41,15 @@ COPY ./container/root /
41
41
# NOTE: order of operations is important, new config had to already installed from repo (above)
42
42
RUN sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE && \
43
43
# Make temp directory for .nginx runtime files \
44
- mkdir /tmp/.nginx
44
+ mkdir /tmp/.nginx && \
45
+ # Next three operations can be completely removed once this ticket is resolved:
46
+ # https://trac.nginx.org/nginx/ticket/1243
47
+ # Remove older WOFF mime-type
48
+ sed -i "/application\/ font-woff/d" /etc/nginx/mime.types && \
49
+ # Add again with newer mime-type
50
+ sed -i "s/}/\n font\/ woff woff;&/" /etc/nginx/mime.types && \
51
+ # Also add mime-type for WOFF2
52
+ sed -i "s/}/\n font\/ woff2 woff2;\n &/g" /etc/nginx/mime.types
45
53
46
54
RUN goss -g /tests/nginx/base.goss.yaml validate && \
47
55
/aufs_hack.sh
You can’t perform that action at this time.
0 commit comments