Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ RUN sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE && \
bash -c "chown www-data:www-data /var/{lib,log}/nginx -Rh" && \
bash -c "chmod 0755 -R /var/{lib,log}/nginx" && \
# Make temp directory for .nginx runtime files \
mkdir /tmp/.nginx
mkdir /tmp/.nginx && \
# Next three operations can be completely removed once this ticket is resolved:
# https://trac.nginx.org/nginx/ticket/1243
# Remove older WOFF mime-type
sed -i "/application\/font-woff/d" /etc/nginx/mime.types && \
# Add again with newer mime-type
sed -i "s/}/\n font\/woff woff;&/" /etc/nginx/mime.types && \
# Also add mime-type for WOFF2
sed -i "s/}/\n font\/woff2 woff2;\n&/g" /etc/nginx/mime.types

RUN goss -g /tests/nginx/base.goss.yaml validate && \
/aufs_hack.sh
Expand Down