-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
21 lines (17 loc) · 872 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG IMAGE_TAG=3.20
FROM --platform=$BUILDPLATFORM ghcr.io/linuxserver/baseimage-alpine:${IMAGE_TAG} AS runtime
WORKDIR /app
COPY ./autopulse /bin
ENV S6_AUTOPULSE_DIR=/etc/s6-overlay/s6-rc.d/svc-autopulse
RUN mkdir -p $S6_AUTOPULSE_DIR && \
echo '#!/usr/bin/with-contenv bash' >> $S6_AUTOPULSE_DIR/run && \
echo '# shellcheck shell=bash' >> $S6_AUTOPULSE_DIR/run && \
echo '' >> $S6_AUTOPULSE_DIR/run && \
echo 'cd /app && /bin/autopulse' >> $S6_AUTOPULSE_DIR/run && \
chmod +x $S6_AUTOPULSE_DIR/run && \
echo "longrun" > $S6_AUTOPULSE_DIR/type && \
echo "3" > $S6_AUTOPULSE_DIR/notification-fd && \
mkdir $S6_AUTOPULSE_DIR/dependencies.d/ && \
echo "" > $S6_AUTOPULSE_DIR/dependencies.d/init-services && \
mkdir -p /etc/s6-overlay/s6-rc.d/user/contents.d && \
echo "" > /etc/s6-overlay/s6-rc.d/user/contents.d/svc-autopulse