Fixes RPi docker files and adds RPi docker compose file
This commit is contained in:
@@ -3,14 +3,10 @@ FROM python:latest
|
||||
# Copy source files
|
||||
RUN mkdir /root/tag-logger
|
||||
COPY taglogger.py /root/tag-logger/taglogger.py
|
||||
# COPY pycomm-master /tmp/pycomm
|
||||
# COPY Pycomm-Helper /tmp/pycomm_helper
|
||||
|
||||
# Install some python packages
|
||||
RUN pip install requests
|
||||
RUN pip install git+https://github.com/Henry-Pump/Pycomm-Helper.git
|
||||
RUN pip install git+https://github.com/ruscito/pycomm.git
|
||||
RUN cd /tmp/pycomm && python setup.py install && cd /
|
||||
RUN cd /tmp/pycomm_helper && python setup.py install && cd /
|
||||
|
||||
CMD ["python", "/root/tag-logger/taglogger.py"]
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
FROM patrickjmcd/rpi-python3:latest
|
||||
FROM armv7/armhf-ubuntu
|
||||
|
||||
# Copy source files
|
||||
# Copy source files
|
||||
RUN mkdir /root/tag-logger
|
||||
COPY taglogger.py /root/tag-logger/taglogger.py
|
||||
COPY pycomm-master /tmp/pycomm
|
||||
COPY pycomm_helper /tmp/pycomm_helper
|
||||
RUN apt-get update && apt-get install -y python python-pip git
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# Install some python packages
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install requests
|
||||
RUN cd /tmp/pycomm && python setup.py install && cd /
|
||||
RUN cd /tmp/pycomm_helper && python setup.py install && cd /
|
||||
RUN pip install git+https://github.com/Henry-Pump/Pycomm-Helper.git
|
||||
RUN pip install git+https://github.com/ruscito/pycomm.git
|
||||
|
||||
CMD ["python", "/root/tag-logger/taglogger.py"]
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
FROM python:latest
|
||||
|
||||
# Copy source files
|
||||
# Copy source files
|
||||
RUN mkdir /root/tag-logger
|
||||
COPY taglogger.py /root/tag-logger/taglogger.py
|
||||
COPY pycomm-master /tmp/pycomm
|
||||
COPY pycomm_helper /tmp/pycomm_helper
|
||||
|
||||
# Install some python packages
|
||||
RUN pip install requests
|
||||
RUN cd /tmp/pycomm && python setup.py install && cd /
|
||||
RUN cd /tmp/pycomm_helper && python setup.py install && cd /
|
||||
RUN pip install git+https://github.com/Henry-Pump/Pycomm-Helper.git
|
||||
RUN pip install git+https://github.com/ruscito/pycomm.git
|
||||
|
||||
CMD ["python", "/root/tag-logger/taglogger.py"]
|
||||
|
||||
Reference in New Issue
Block a user