17. FROM golang:1.7.1
WORKDIR /
ENV PORT 3333
EXPOSE 3333
# add binary into image
ADD react/build/ /react/build/
ADD server/server //
ENTRYPOINT ["/server"] (from BuildServer)
18. # golang image where workspace (GOPATH) configured at /go.
FROM golang
# Copy the local package files to the container’s workspace.
ADD . /go/src/github.com/shijuvar/go-web/taskmanager
# Setting up working directory
WORKDIR /go/src/github.com/shijuvar/go-web/taskmanager
# Get godeps for managing and restoring dependencies
RUN go get github.com/tools/godep
# Restore godep dependencies
RUN godep restore
# Build the taskmanager command inside the container.
RUN go install github.com/shijuvar/go-web/taskmanager
# Run the taskmanager command when the container starts.
ENTRYPOINT /go/bin/taskmanager
# Service listens on port 8080.
EXPOSE 8080