committed by
GitHub
27 changed files with 273 additions and 141 deletions
@ -0,0 +1,21 @@ |
|||||
|
#!/usr/bin/env sh |
||||
|
|
||||
|
# set -e Exit the script if an error happens |
||||
|
set -e |
||||
|
PUID=${PUID=1000} |
||||
|
PGID=${PGID=1000} |
||||
|
|
||||
|
files_ownership () { |
||||
|
# -h Changes the ownership of an encountered symbolic link and not that of the file or directory pointed to by the symbolic link. |
||||
|
# -R Recursively descends the specified directories |
||||
|
# -c Like verbose but report only when a change is made |
||||
|
chown -hRc "$PUID":"$PGID" /app/data |
||||
|
} |
||||
|
|
||||
|
echo "==> Performing startup jobs and maintenance tasks" |
||||
|
files_ownership |
||||
|
|
||||
|
echo "==> Starting application with user $PUID group $PGID" |
||||
|
|
||||
|
# --clear-groups Clear supplementary groups. |
||||
|
exec setpriv --reuid "$PUID" --regid "$PGID" --clear-groups "$@" |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 9.5 KiB |
@ -0,0 +1,19 @@ |
|||||
|
{ |
||||
|
"name": "Uptime Kuma", |
||||
|
"short_name": "Uptime Kuma", |
||||
|
"start_url": "/", |
||||
|
"background_color": "#fff", |
||||
|
"display": "standalone", |
||||
|
"icons": [ |
||||
|
{ |
||||
|
"src": "icon-192x192.png", |
||||
|
"sizes": "192x192", |
||||
|
"type": "image/png" |
||||
|
}, |
||||
|
{ |
||||
|
"src": "icon-512x512.png", |
||||
|
"sizes": "512x512", |
||||
|
"type": "image/png" |
||||
|
} |
||||
|
] |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
FROM ubuntu |
||||
|
WORKDIR /app |
||||
|
RUN apt update && apt --yes install git curl |
||||
|
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - |
||||
|
RUN apt --yes install nodejs |
||||
|
RUN git clone https://github.com/louislam/uptime-kuma.git . |
||||
|
RUN npm run setup |
||||
|
|
||||
|
# Option 1. Try it |
||||
|
RUN node server/server.js |
Loading…
Reference in new issue