mirror of
https://github.com/linuxserver/docker-apprise-api.git
synced 2026-02-23 00:00:39 +08:00
Rebase to alpine 3.16, migrate to S6V3
This commit is contained in:
parent
c3409bc317
commit
e3dfd1966f
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.16
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -40,7 +40,7 @@ RUN \
|
||||
echo "**** install pip packages ****" && \
|
||||
cd /app/apprise-api && \
|
||||
pip3 install -U --no-cache-dir pip wheel && \
|
||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ -r requirements.txt && \
|
||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r requirements.txt && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
@ -51,3 +51,4 @@ RUN \
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
EXPOSE 8000
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.16
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -40,7 +40,7 @@ RUN \
|
||||
echo "**** install pip packages ****" && \
|
||||
cd /app/apprise-api && \
|
||||
pip3 install -U --no-cache-dir pip wheel && \
|
||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ -r requirements.txt && \
|
||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r requirements.txt && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
@ -51,3 +51,4 @@ RUN \
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
EXPOSE 8000
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.15
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.16
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -40,7 +40,7 @@ RUN \
|
||||
echo "**** install pip packages ****" && \
|
||||
cd /app/apprise-api && \
|
||||
pip3 install -U --no-cache-dir pip wheel && \
|
||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ -r requirements.txt && \
|
||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r requirements.txt && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
@ -51,3 +51,4 @@ RUN \
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
EXPOSE 8000
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
---
|
||||
|
||||
# project information
|
||||
project_name: apprise-api
|
||||
project_url: "https://github.com/caronc/apprise-api"
|
||||
@ -79,6 +78,7 @@ app_setup_block: []
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "17.10.22:", desc: "Rebase to alpine 3.16, migrate to S6V3"}
|
||||
- { date: "28.02.21:", desc: "Rebase to alpine 3.15." }
|
||||
- { date: "03.11.21:", desc: "Increase uWSGI buffer size to 32kb." }
|
||||
- { date: "16.05.21:", desc: "Add linuxserver wheel index." }
|
||||
|
||||
0
root/etc/cont-init.d/50-config → root/etc/s6-overlay/s6-rc.d/init-apprise-config/run
Normal file → Executable file
0
root/etc/cont-init.d/50-config → root/etc/s6-overlay/s6-rc.d/init-apprise-config/run
Normal file → Executable file
1
root/etc/s6-overlay/s6-rc.d/init-apprise-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-apprise-config/type
Normal file
@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-apprise-config/up
Executable file
1
root/etc/s6-overlay/s6-rc.d/init-apprise-config/up
Executable file
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-apprise-config/run
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-apprise/notification-fd
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-apprise/notification-fd
Normal file
@ -0,0 +1 @@
|
||||
3
|
||||
5
root/etc/s6-overlay/s6-rc.d/svc-apprise/run
Executable file
5
root/etc/s6-overlay/s6-rc.d/svc-apprise/run
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8000" \
|
||||
cd /app/apprise-api/apprise_api s6-setuidgid abc /usr/sbin/uwsgi --http-socket=:8000 --enable-threads --plugin=python3 --module=core.wsgi:application --static-map=/s=static --buffer-size=32768
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-apprise/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-apprise/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
||||
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
cd /app/apprise-api/apprise_api || exit
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /usr/sbin/uwsgi --http-socket=:8000 --enable-threads --plugin=python3 --module=core.wsgi:application --static-map=/s=static --buffer-size=32768
|
||||
Loading…
x
Reference in New Issue
Block a user