Dodan Dockerfile

This commit is contained in:
Žiga Kralj 2024-10-07 17:31:47 +02:00
parent fcc4398393
commit 7963237bc0
4 changed files with 17 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:3-alpine
WORKDIR /opt/flex_proxy
COPY flex_proxy.py flex_proxy.py
EXPOSE 4996
CMD ["python", "./flex_proxy.py"]

View File

@ -46,3 +46,9 @@ python3 client.py [ip address]
The default IP address is `localhost`.
It can be changed by changing the `HOST` variable in `client.py` or by passing the IP address as an argument.
### Docker
Proxy strežnik lahko namestite tudi preko Docker containerja. Že zgrajene slike
so na voljo na Gitlab Container Registeriju. Pod oznako `mikrotik` je zgrajen paket
za ARM arhihekturo (ARM64 build še pride).

1
client.py Normal file → Executable file
View File

@ -8,6 +8,7 @@
# proxy and re-broadcasts all received packets.
#
# Author: Jakob Kordež, S52KJ
# Docker: Žiga Kralj, S50ZK
#
######################################################

1
flex_proxy.py Normal file → Executable file
View File

@ -9,6 +9,7 @@
# over a TCP connection to all connected clients.
#
# Author: Jakob Kordež, S52KJ
# Docker: Žiga Kralj, S50ZK
#
######################################################