summaryrefslogtreecommitdiff
path: root/mqtt_client/Dockerfile
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-10-10 21:52:46 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-10-10 21:52:46 -0300
commit22935fae60b6ab2040596d4a78d1812e2a16589e (patch)
tree1f8fa5d64d4bc444537a12e098333c3a58e28476 /mqtt_client/Dockerfile
parentdc70b88f7a516279ce0cc3be2d30a5e1d9a80091 (diff)
refactor:remoção do banco
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"]