From 8e38cad31dfc313c3ff5a6c313da3add66737d1b Mon Sep 17 00:00:00 2001 From: Sascha Hagedorn Date: Mon, 12 Aug 2019 22:02:07 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b01139b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine as build +RUN apk add --no-cache curl unzip +RUN curl -L `curl -s https://api.github.com/repos/nrenner/brouter-web/releases/latest | grep browser_download_url | cut -d '"' -f 4` -o brouter-web.zip +RUN mkdir /tmp/brouter-web +RUN unzip -d /tmp/brouter-web brouter-web.zip + +FROM nginx:alpine +COPY --from=build /tmp/brouter-web/index.html /usr/share/nginx/html +COPY --from=build /tmp/brouter-web/dist /usr/share/nginx/html/dist +VOLUME [ "/usr/share/nginx/html" ] \ No newline at end of file