Merge pull request #33 from williamkray/master

update dockerfile to include _redirects in container
This commit is contained in:
Krishan 2021-08-01 21:12:16 +05:30 committed by GitHub
commit 8beeb64127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ FROM nginx:alpine
COPY --from=builder /src/dist /app COPY --from=builder /src/dist /app
COPY --from=builder /src/olm.wasm /app/olm.wasm COPY --from=builder /src/olm.wasm /app/olm.wasm
COPY --from=builder /src/_redirects /app/_redirects
# 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 -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types