Skip to content

Commit d515bad

Browse files
committed
Support application/wasm in docker
Signed-off-by: Half-Shot <will@half-shot.uk>
1 parent ab758d2 commit d515bad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,11 @@ FROM nginx:alpine
3030

3131
COPY --from=builder /src/webapp /app
3232

33+
# Insert wasm type into Nginx mime.types file so they load correctly.
34+
RUN sed '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types > /tmp/mime.types
35+
RUN cp /tmp/mime.types /etc/nginx/mime.types
36+
37+
RUN cat /etc/nginx/mime.types
38+
3339
RUN rm -rf /usr/share/nginx/html \
3440
&& ln -s /app /usr/share/nginx/html

0 commit comments

Comments
 (0)