initial commit

This commit is contained in:
Ray Ozzie
2016-03-21 12:36:55 -07:00
commit 57de6231da
6 changed files with 330 additions and 0 deletions

17
Dockerfile~ Normal file
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"]