ttn-resin-gateway-rpi/Dockerfile
jpmeijers 3e89ec3133 Edit Dockerfile to run python script
Add configuration description
2017-02-26 20:40:44 +01:00

19 lines
466 B
Docker

FROM resin/raspberrypi-buildpack-deps
# Enable systemd, as Resin requires this
#ENV INITSYSTEM on
# Make the hardware type available as a runtime env var
ENV RESIN_ARCH %%RESIN_ARCH%%
ENV RESIN_MACHINE_NAME %%RESIN_MACHINE_NAME%%
# Copy the build and run environment
COPY . /opt/ttn-gateway/
WORKDIR /opt/ttn-gateway/
# Build the gateway (or comment this out if debugging on-device)
RUN ./dev/build.sh && rm -rf ./dev
# Start it up
CMD ["sh", "-c", "./run.py"]