ttn-resin-gateway-rpi/Dockerfile~

18 lines
417 B
Docker
Raw Normal View History

2016-03-21 19:36:55 +00:00
FROM resin/raspberrypi-golang
# What's the name of your go package?
ENV PKG test
# Enable systemd
ENV INITSYSTEM on
# Copy all the source code to the place where golang will find it
COPY ./src $GOPATH/src
# Build all the golang source
WORKDIR $GOPATH/src/$PKG
RUN go get && go install && go build all
# Tell the container to run the golang program's binary on startup
CMD ["sh", "-c", "env && $GOPATH/bin/$PKG"]