@babolivier showed me the way

This commit is contained in:
Will Hunt 2020-01-15 17:07:38 +00:00 committed by GitHub
parent d515bad46f
commit 625c21a8af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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