buildx/element/Dockerfile

9 lines
260 B
Docker

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