Make riot work

This commit is contained in:
asonix 2020-01-26 01:28:51 -06:00
parent 230dc6d9e1
commit 0cee363afa
2 changed files with 18 additions and 2 deletions

View file

@ -2,9 +2,18 @@ FROM vectorim/riot-web as builder
FROM arm64v8/nginx:1.17.8-alpine
RUN apk add tini
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
COPY --from=builder /app /app
COPY init.sh /usr/local/bin/init.sh
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html
RUN set -xe; \
rm -rf /usr/share/nginx/html; \
ln -s /app /usr/share/nginx/html; \
mkdir /etc/riot-web
VOLUME /etc/riot-web
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["init.sh", "nginx", "-g", "daemon off;"]

7
riot/init.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env sh
set -xe
cp /etc/riot-web/config.json /app/config.json
exec "$@"