mirror of
https://github.com/fiso64/slsk-batchdl.git
synced 2024-12-22 14:32:40 +00:00
Add dockerfile and cron setup for sldl with lsio cron
This commit is contained in:
parent
6e7b8d5d67
commit
e56136104e
6 changed files with 34 additions and 0 deletions
28
Dockerfile
Normal file
28
Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
|
||||||
|
|
||||||
|
ENV TZ=Etc/GMT
|
||||||
|
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
echo "**** install packages ****" && \
|
||||||
|
apk --no-cache add \
|
||||||
|
binutils-gold \
|
||||||
|
openssl \
|
||||||
|
zlib \
|
||||||
|
libstdc++ \
|
||||||
|
dotnet6-sdk \
|
||||||
|
aspnetcore6-runtime \
|
||||||
|
bash
|
||||||
|
|
||||||
|
ENV DOCKER_MODS=linuxserver/mods:universal-cron
|
||||||
|
|
||||||
|
COPY docker/root/ /
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --chown=abc:abc . /app
|
||||||
|
|
||||||
|
RUN rm -rf /app/docker
|
||||||
|
|
||||||
|
RUN dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true
|
4
docker/root/etc/s6-overlay/s6-rc.d/svc-cron/run
Executable file
4
docker/root/etc/s6-overlay/s6-rc.d/svc-cron/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
echo -e "\nStarting cron"
|
||||||
|
/usr/sbin/crond -b -S -l 0 -L /config/cron.log
|
1
docker/root/etc/s6-overlay/s6-rc.d/svc-cron/type
Normal file
1
docker/root/etc/s6-overlay/s6-rc.d/svc-cron/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
1
docker/root/etc/s6-overlay/s6-rc.d/svc-cron/up
Normal file
1
docker/root/etc/s6-overlay/s6-rc.d/svc-cron/up
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/svc-cron/run
|
Loading…
Reference in a new issue