Skip to content

Commit 7437ef4

Browse files
authored
Merge pull request #55 from eerikson/AddMimeTypesToAlpine
Dockerfile-alpine Mime-types
2 parents 1515d27 + 86f4d68 commit 7437ef4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile-alpine

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ RUN sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE && \
3030
bash -c "chown www-data:www-data /var/{lib,log}/nginx -Rh" && \
3131
bash -c "chmod 0755 -R /var/{lib,log}/nginx" && \
3232
# 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
3442

3543
RUN goss -g /tests/nginx/base.goss.yaml validate && \
3644
/aufs_hack.sh

0 commit comments

Comments
 (0)