11 lines
415 B
Docker
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"] |