Skip to content

Commit 044720b

Browse files
authored
Merge pull request element-hq#11858 from vector-im/hs/wasm-docker
Support application/wasm in Docker image
2 parents 599b263 + 625c21a commit 044720b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ 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 -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
35+
3336
RUN rm -rf /usr/share/nginx/html \
3437
&& ln -s /app /usr/share/nginx/html

0 commit comments

Comments
 (0)