Dockerize

This commit is contained in:
Markus F.J. Busche
2024-02-03 12:07:26 +01:00
parent 666e9d972d
commit 487931826f
4 changed files with 17 additions and 1 deletions

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk update
RUN apk add py-pip
RUN apk add --no-cache python3-dev net-snmp-tools py3-flask
WORKDIR /app
COPY . /app
CMD ["python3", "app.py"]

8
README.md Normal file
View File

@@ -0,0 +1,8 @@
# Uptime-Kuma SMTP bridge
## Docker
Login: `docker login`
Build: `docker build -t uptimekuma-snmp-bridge .`
Tag: `docker tag uptimekuma-snmp-bridge elpatron68/uptimekuma-snmp-bridge`
Push: `docker image push elpatron68/uptimekuma-snmp-bridge`

2
app.py
View File

@@ -49,4 +49,4 @@ def startsnmpwalk(ip, oid, expectedtext):
if __name__ == '__main__':
app.run(debug=True, host='192.168.177.48')
app.run(host="0.0.0.0", port=8684)

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
Flask==3.0.0