ttn-resin-gateway-rpi/Dockerfile~
Ray Ozzie dbd0673192 asf
2016-03-22 16:25:20 -07:00

16 lines
393 B
Docker

FROM resin/raspberrypi-buildpack-deps
# Enable systemd
ENV INITSYSTEM on
# Build the gateway
COPY resin-install.sh /ttn-gateway/resin-install.sh
WORKDIR /ttn-gateway
RUN ./resin-install.sh
# Copy the run shell script after build, so we can modify it without rebuilding
COPY resin-run.sh /opt/ttn-gateway/bin/resin-run.sh
# Start it up
CMD ["sh", "-c", "/opt/ttn-gateway/bin/resin-run.sh"]