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:
parent
0070d46a20
commit
5454ed3458
5 changed files with 228 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue