2020-01-28 17:42:19 +00:00
|
|
|
FROM vectorim/riot-web:VERSION as builder
|
2020-01-22 18:10:33 +00:00
|
|
|
|
|
|
|
FROM arm64v8/nginx:1.17.8-alpine
|
|
|
|
|
2020-01-26 07:28:51 +00:00
|
|
|
RUN apk add tini
|
2020-01-22 18:10:33 +00:00
|
|
|
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
|
|
|
|
|
|
|
|
COPY --from=builder /app /app
|
2020-01-26 07:28:51 +00:00
|
|
|
COPY init.sh /usr/local/bin/init.sh
|
2020-01-22 18:10:33 +00:00
|
|
|
|
2020-01-26 07:28:51 +00:00
|
|
|
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;"]
|