1
Fork 0
mirror of https://github.com/RGBCube/cinny synced 2025-07-30 16:37:46 +00:00

configured webpack to copy olm.wasm automatically

This commit is contained in:
unknown 2021-08-03 08:42:12 +05:30
parent 0070d46a20
commit 5454ed3458
5 changed files with 228 additions and 3 deletions

View file

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