Support application/wasm in docker

Signed-off-by: Half-Shot <will@half-shot.uk>
pull/11858/head
Half-Shot 2020-01-15 12:01:38 +00:00
parent ab758d2377
commit d515bad46f
1 changed files with 6 additions and 0 deletions

View File

@ -30,5 +30,11 @@ FROM nginx:alpine
COPY --from=builder /src/webapp /app
# Insert wasm type into Nginx mime.types file so they load correctly.
RUN sed '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types > /tmp/mime.types
RUN cp /tmp/mime.types /etc/nginx/mime.types
RUN cat /etc/nginx/mime.types
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html