1
0
Fork 0
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:
FoxxMD 2024-08-23 12:55:16 -04:00
parent 6e7b8d5d67
commit e56136104e
6 changed files with 34 additions and 0 deletions

28
Dockerfile Normal file
View 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

View 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

View file

@ -0,0 +1 @@
oneshot

View file

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/svc-cron/run