Files
py-eagle-mqtt/Docker/Dockerfile
erichardso d880f44ca6 Moved Docker stuff to "Docker" folder
Created k8s folder for k8s stuff
Added early-stage service.yaml for K8s deployment
2018-08-28 11:51:23 -07:00

19 lines
521 B
Docker

FROM python:2.7.15-alpine3.8
LABEL maintainer="Evan Richardson"
LABEL version="1.0"
WORKDIR /app
COPY . /app
ENV PYTHONPATH=/app/src/python
RUN pip install -r requirements.txt
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc python-dev build-base
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install --no-cache-dir numpy
RUN rm -rf /var/cache/apk
CMD ["/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"]
EXPOSE 22042