Files
POC-Java/Dockerfile
2017-06-23 13:21:18 -05:00

25 lines
532 B
Docker

FROM resin/rpi-raspbian:jessie
# FROM ubuntu
# Install dependencies
RUN apt-get update && apt-get install -y \
git-core \
build-essential \
gcc \
oracle-java8-jdk\
curl\
wget\
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
RUN git clone git://git.drogon.net/wiringPi
RUN cd wiringPi && ./build
RUN curl -s get.pi4j.com | bash
COPY build/libs/poc-java-all-1.0-SNAPSHOT.jar /root
COPY rpi_startup.sh /root
# Define working directory
WORKDIR /data
VOLUME /data
CMD ["/root/rpi_startup.sh"]