Skip to content

Commit 625c21a

Browse files
authored
@babolivier showed me the way
1 parent d515bad commit 625c21a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ FROM nginx:alpine
3131
COPY --from=builder /src/webapp /app
3232

3333
# 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
34+
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
3835

3936
RUN rm -rf /usr/share/nginx/html \
4037
&& ln -s /app /usr/share/nginx/html

0 commit comments

Comments
 (0)