initial commit

This commit is contained in:
Ray Ozzie committed 2016-03-21 12:36:55 -07:00
commit 57de6231da
6 files changed
+330

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
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"]