diff --git a/Dockerfile b/Dockerfile index bcdc68b..2ac5ce1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,5 +27,5 @@ RUN set -ex \ && apk --no-cache add bash EXPOSE 3000/tcp -WORKDIR "/usr/local/share/browserphone" +WORKDIR "/usr/local/share/browserphone/dist" CMD ["/usr/local/bin/docker-entrypoint.sh"] diff --git a/dist/index.html b/dist/index.html index 947c9a9..fd8b261 100644 --- a/dist/index.html +++ b/dist/index.html @@ -10,6 +10,8 @@ integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous"> BrowserPhone + +
diff --git a/dist/manifest.json b/dist/manifest.json new file mode 100644 index 0000000..a8762b0 --- /dev/null +++ b/dist/manifest.json @@ -0,0 +1,25 @@ +{ + "short_name": "BrowserPhone", + "name": "BrowserPhone", + "icons": [ + { + "src": "phone_192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "phone_512.png", + "type": "image/png", + "sizes": "512x512" + }, + { + "src": "phone_600.png", + "type": "image/png", + "sizes": "600x600" + } + ], + "start_url": "/", + "background-color": "#222222", + "display": "standalone", + "theme_color": "#222222" +} diff --git a/dist/phone_192.png b/dist/phone_192.png new file mode 100644 index 0000000..0ce0533 Binary files /dev/null and b/dist/phone_192.png differ diff --git a/dist/phone_512.png b/dist/phone_512.png new file mode 100644 index 0000000..b365554 Binary files /dev/null and b/dist/phone_512.png differ diff --git a/dist/phone_600.png b/dist/phone_600.png new file mode 100644 index 0000000..4693e8b Binary files /dev/null and b/dist/phone_600.png differ diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index cbf334a..3570a06 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,7 +1,10 @@ #!/usr/local/bin/dumb-init /bin/bash set -euxo pipefail -ln -f dist/app.js app.js -korvike -i dist/index.html -o index.html +if [[ ! -f index.html.dist ]]; then + mv index.html index.html.dist +fi + +korvike -i index.html.dist -o index.html exec python -m http.server 3000