-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
58 lines (53 loc) · 1.61 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
# set version label
ARG BUILD_DATE
ARG VERSION
ARG APPRISE_TAG
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="Roxedus"
ENV APPRISE_CONFIG_DIR=/config \
APPRISE_ATTACH_DIR=/attachments \
APPRISE_ATTACH_SIZE=0
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --upgrade --virtual=build-dependencies \
cargo \
build-base \
libffi-dev \
openssl-dev \
python3-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
python3 \
uwsgi \
uwsgi-python && \
if [ -z ${APPRISE_TAG+x} ]; then \
APPRISE_TAG=$(curl -s https://api.github.com/repos/caronc/apprise-api/tags \
| jq -r ". | .[0].name"); \
fi && \
mkdir -p /app/apprise-api && \
curl -o \
/tmp/apprise-api.tar.gz -L \
"https://github.com/caronc/apprise-api/archive/${APPRISE_TAG}.tar.gz" && \
tar xf \
/tmp/apprise-api.tar.gz -C \
/app/apprise-api/ --strip-components=1 && \
echo "**** install pip packages ****" && \
cd /app/apprise-api && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ -r requirements.txt && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
$HOME/.cache \
$HOME/.cargo \
/tmp/*
# copy local files
COPY root/ /
EXPOSE 8000