test
This commit is contained in:
parent
48625a8a21
commit
207663c176
24
Dockerfile
24
Dockerfile
@ -1,24 +0,0 @@
|
|||||||
FROM resin/raspberrypi-buildpack-deps
|
|
||||||
|
|
||||||
# Enable systemd, as Resin requires this
|
|
||||||
ENV INITSYSTEM on
|
|
||||||
|
|
||||||
# Make the hardware type available as a runtime env var
|
|
||||||
run sh -c env
|
|
||||||
ENV RESIN_ARCHITECTURE $RESIN_ARCH
|
|
||||||
run sh -c env
|
|
||||||
|
|
||||||
# Version number of gateway software.
|
|
||||||
# (Incrementing this simply forces Docker to flush its cache
|
|
||||||
# and thus forces a full rebuild. Not used outside of Dockerfile.)
|
|
||||||
ENV TTN_GATEWAY_SOFTWARE 51
|
|
||||||
|
|
||||||
# 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.sh"]
|
|
Loading…
Reference in New Issue
Block a user