Adding generated dockerfile
This commit is contained in:
parent
d6ff222741
commit
19dd244f22
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM library/golang
|
||||||
|
|
||||||
|
# Godep for vendoring
|
||||||
|
RUN go get github.com/tools/godep
|
||||||
|
|
||||||
|
# Recompile the standard library without CGO
|
||||||
|
RUN CGO_ENABLED=0 go install -a std
|
||||||
|
|
||||||
|
ENV APP_DIR $GOPATH/src/multitenantStack
|
||||||
|
RUN mkdir -p $APP_DIR
|
||||||
|
|
||||||
|
# Set the entrypoint
|
||||||
|
ENTRYPOINT (cd $APP_DIR && ./multitenantStack)
|
||||||
|
ADD . $APP_DIR
|
||||||
|
|
||||||
|
# Compile the binary and statically link
|
||||||
|
RUN cd $APP_DIR && CGO_ENABLED=0 godep go build -ldflags '-d -w -s'
|
||||||
|
|
||||||
|
EXPOSE 8080
|
Loading…
Reference in New Issue
Block a user