Compare commits
1 Commits
v0.0.1
..
dab093e325
| Author | SHA1 | Date | |
|---|---|---|---|
| dab093e325 |
+4
-4
@@ -1,12 +1,12 @@
|
||||
# syntax=docker.io/docker/dockerfile:1
|
||||
# syntax=docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89
|
||||
|
||||
FROM python:3.14-alpine AS pipdependencies
|
||||
FROM "python:3.11-alpine" AS pipdependencies
|
||||
|
||||
COPY app/requirements.txt /requirements.txt
|
||||
|
||||
RUN pip3 install --no-cache-dir --user --requirement requirements.txt
|
||||
|
||||
FROM python:3.14-alpine
|
||||
FROM "python:3.11-alpine"
|
||||
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
|
||||
|
||||
# TODO: à tester
|
||||
@@ -19,7 +19,7 @@ WORKDIR "/app"
|
||||
|
||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||
|
||||
COPY --from=binwiederhier/ntfy:v2.24.0 /usr/bin/ntfy /usr/local/bin/ntfy
|
||||
COPY --from=binwiederhier/ntfy:v2.24.0@sha256:f8a9b104313b87cc24ae4f775f39e6328205b57dff6ede3eaf098a91e5d79f59 /usr/bin/ntfy /usr/local/bin/ntfy
|
||||
RUN mkdir /etc/ntfy
|
||||
|
||||
COPY --from=pipdependencies /root/.local /root/.local
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
xmltodict==1.0.4
|
||||
pushbullet.py==0.11.0
|
||||
xmltodict==0.12.0
|
||||
|
||||
@@ -6,8 +6,13 @@ import xmltodict
|
||||
import requests
|
||||
import json
|
||||
import time
|
||||
# TODO: disabled api excess
|
||||
#from pushbullet import Pushbullet
|
||||
import subprocess
|
||||
|
||||
# TODO: disabled api excess
|
||||
#pb = Pushbullet(os.environ['PB_APIKEY'])
|
||||
|
||||
pin = os.environ['PIN']
|
||||
|
||||
PIN_ENTER_TEMPLATE = '''<request>
|
||||
@@ -157,6 +162,10 @@ if __name__ == "__main__":
|
||||
|
||||
# Text
|
||||
f3.write(messages[i] + '\n')
|
||||
# Pushbullet
|
||||
print('# Notif pushbullet')
|
||||
# TODO: disabled api excess
|
||||
#pb.push_note("SMS", "From: %s\nDate: %s\n%s" % (messagesR[i]['Phone'], messagesR[i]['Date'], messagesR[i]['Content']))
|
||||
|
||||
# NTFY
|
||||
# TODO: exec ntfy publish
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ version: '2.3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: "jcabillot/huawei-3g-sms-api"
|
||||
image: "jcabillot/huawei-3g-sms-api@sha256:a76358b2ee123d6570b93802e1813e46b9a634065400bae38202c2ded29deb73"
|
||||
container_name: "huawei-3g-sms-api"
|
||||
restart: "unless-stopped"
|
||||
mem_limit: "256m"
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"customManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": "Track ntfy binary in COPY --from",
|
||||
"managerFilePatterns": ["/^Dockerfile$/"],
|
||||
"matchStrings": ["COPY --from=binwiederhier/ntfy:(?<currentValue>[^\\s]+)"],
|
||||
"depNameTemplate": "binwiederhier/ntfy",
|
||||
"datasourceTemplate": "docker"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user