Files
aqara-mqtt/Dockerfile-rpi
T
2018-02-16 00:28:28 +03:00

17 lines
419 B
Plaintext

FROM arm32v7/python:slim
ENV LIBRARY_PATH=/lib:/usr/lib
COPY qemu-arm-static /usr/bin/qemu-arm-static
ADD src/requirements.txt /
RUN apt-get update && apt-get install -y build-essential autoconf \
&& pip install --upgrade pip && pip install -r /requirements.txt \
&& apt-get remove -y build-essential autoconf \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY src /app
CMD ["python3", "-u", "/app/main.py"]