initial commit
This commit is contained in:
17
Dockerfile~
Normal file
17
Dockerfile~
Normal 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"]
|
Reference in New Issue
Block a user