Make riot work
This commit is contained in:
parent
230dc6d9e1
commit
0cee363afa
|
@ -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
7
riot/init.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
set -xe
|
||||
|
||||
cp /etc/riot-web/config.json /app/config.json
|
||||
|
||||
exec "$@"
|
Loading…
Reference in a new issue