Skip to content
Open
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
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ RUN sed -i 's/application\/javascript.*js;/application\/javascript

RUN sed -i 's|index index.html index.htm;|index index.html index.htm;\n try_files $uri $uri/ /index.html;|' /etc/nginx/conf.d/default.conf

# Explicitly add IPv6 listen directive since the nginx entrypoint script
# (10-listen-on-ipv6-by-default.sh) skips IPv6 configuration when it detects
# that default.conf has already been modified (see issue #264).
RUN sed -i 's|listen 80;|listen 80;\n listen [::]:80;|' /etc/nginx/conf.d/default.conf

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]