initial commit from IBM Cloud example
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
commit
4e76f510b3
32 changed files with 1925 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM golang:1.10.3-alpine
|
||||
|
||||
# Update packages and install dependency packages for services
|
||||
RUN apk update && apk add --no-cache bash git
|
||||
|
||||
# Change working directory
|
||||
WORKDIR $GOPATH/src/myappziugv/
|
||||
|
||||
# Install dependencies
|
||||
RUN go get -u github.com/golang/dep/...
|
||||
RUN go get -u github.com/derekparker/delve/cmd/dlv/...
|
||||
COPY . ./
|
||||
RUN dep ensure -v
|
||||
|
||||
ENV PORT 8080
|
||||
ENV GIN_MODE release
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["go", "run", "server.go"]
|
Reference in a new issue