Update element/Makefile, element/Dockerfile, .gitlab-ci.yml files

This commit is contained in:
2021-05-04 09:34:02 +00:00
parent e909a33232
commit 8695a0eaa5
3 changed files with 32 additions and 4 deletions

8
element/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM nginx: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