summaryrefslogtreecommitdiff
path: root/mqtt_client/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'mqtt_client/Dockerfile')
-rw-r--r--mqtt_client/Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/mqtt_client/Dockerfile b/mqtt_client/Dockerfile
new file mode 100644
index 0000000..7733d2b
--- /dev/null
+++ b/mqtt_client/Dockerfile
@@ -0,0 +1,20 @@
+FROM python:3.14-slim
+ENV PYTHONUNBUFFERED=1
+
+WORKDIR /mqtt-client
+
+RUN useradd \
+ --shell /sbin/nologin \
+ --uid 10001 \
+ --no-create-home \
+ mqtt-client-usr
+
+COPY requirements.txt .
+
+RUN python -m pip install -r requirements.txt
+
+USER mqtt-client-usr
+
+COPY . .
+
+CMD ["python3", "main.py"]