Dockerize
This commit is contained in:
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
8
README.md
Normal 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
2
app.py
@@ -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
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
Flask==3.0.0
|
Reference in New Issue
Block a user