summaryrefslogtreecommitdiff
path: root/mqtt_client/Dockerfile
blob: 7733d2b5681775c96330b474d2578ac36e5b1f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"]