Files
ThingsBoard/IG502 Docker/ig502.dockerfile
2025-03-04 14:52:32 -06:00

11 lines
415 B
Docker

FROM python:3.7.2-alpine
# This hack is widely applied to avoid python printing issues in docker containers.
# See: https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/pull/13
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 py3-pip
ADD device_supervisor ./device_supervisor
WORKDIR ./device_supervisor/
CMD ["pip", "install", "."]
#CMD ["device_supervisor"]
CMD ["tail", "-f", "/dev/null"]