initial code (#6)

* initial code commit
This commit is contained in:
l3uddz
2021-02-14 16:18:26 +00:00
committed by GitHub
parent 3f55336fbd
commit ce3807b819
53 changed files with 3694 additions and 0 deletions

17
docker/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM sc4h/alpine-s6overlay:3.12
ENV \
PATH="/app/nabarr:${PATH}" \
APP_CONFIG="/config/config.yml" \
APP_CACHE="/config/cache" \
APP_LOG="/config/activity.log" \
APP_VERBOSITY="0"
# Binary
COPY ["dist/nabarr_linux_amd64/nabarr", "/app/nabarr/nabarr"]
# Add root files
COPY ["docker/run", "/etc/services.d/nabarr/run"]
# Volume
VOLUME ["/config"]

3
docker/run Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv sh
exec s6-setuidgid abc /app/nabarr/nabarr run