Skip to content

Commit

Permalink
- copy Dockerfile from [meshviewer-server-docker](https://github.com/…
Browse files Browse the repository at this point in the history
…FreifunkMD/meshviewer-server-docker)

- try simplify Dockerfile
  • Loading branch information
Angelika Ophagen committed Feb 20, 2023
1 parent baec2ba commit 3582618
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM node:13-slim

WORKDIR .

EXPOSE 80

RUN apt update \
&& apt install -y --no-install-recommends \
unattended-upgrades \
ca-certificates \
nginx \
git \
wget \
curl

COPY ./nginx-site.default /etc/nginx/sites-available/default

CMD rm -rf /var/www/html/* ; \
mkdir -p /var/www/html/data ; \
echo "<html><head><meta http-equiv="refresh" content="5"></head> <body><h1>Meshviewer wird frisch geklont und neu gebaut.</h1><h1>Bitte 1-2 Minuten warten...</h1></body></html>" > /var/www/html/index.html ; \
service nginx start ; \
yarn ; \
yarn gulp ; \
yarn cache clean ; \
rm -rf node_modules ; \
sh -c "wget http://gw01.babel.md.freifunk.net:8080/data/meshviewer.json -O /var/www/html/data/meshviewer.json" ; \
cp -R -f build/* /var/www/html ; \
while true; do sleep 1m; sh -c "wget http://gw01.babel.md.freifunk.net:8080/data/meshviewer.json -O /var/www/html/data/meshviewer.json" ; done

0 comments on commit 3582618

Please sign in to comment.