Update Dockerfile

This commit is contained in:
Adrien le Maire 2021-05-04 09:36:11 +00:00
parent c224357b36
commit f70cc9c3c7

View File

@ -1,8 +1,8 @@
FROM nginx:alpine
FROM nginx:1.20.0-alpine
COPY ./element /app
# Insert wasm type into Nginx mime.types file so they load correctly.
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types \
&& rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html
&& ln -s /app /usr/share/nginx/html