-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- copy Dockerfile from [meshviewer-server-docker](https://github.com/…
…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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |