Changes to be committed:

modified:   README.md
    new file:   beloit/menu.png
    new file:   clay/menu.png
    new file:   docker.sh
    new file:   docker/Dockerfile
    new file:   docker/entrypoint.sh
    new file:   index.html
    new file:   setup.sh
    new file:   st_marys/menu.png
    new file:   startup.sh
This commit is contained in:
2026-01-21 18:44:55 -06:00
parent 0843a5f07c
commit 0a92807bdd
10 changed files with 114 additions and 0 deletions

11
docker/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM nginx:latest
ENV LOCATION=clay
RUN apt-get update && apt-get install -y git
COPY entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r$//' /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

15
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
cd /usr/share/nginx
rm -rf html
mkdir html
git clone https://github.com/stenny94/kiosk-menu.git html
cd html
sed -i "s/*LOCATION/${LOCATION:-clay}/g" index.html
sed -i "s/*FILETYPE/${FILETYPE:-image}/g" index.html
nginx -g "daemon off;"