Files
janus/Dockerfile
“nishant-sharma” 1f6f64994b Dockerfile
2021-03-31 10:36:48 +05:30

19 lines
242 B
Docker

FROM golang:1.16
RUN mkdir $GOPATH/app
WORKDIR $GOPATH/app
COPY . .
RUN go version
RUN go env
# Download all the dependencies
RUN go get -d -v ./...
# Install the package
RUN go install -v ./...
EXPOSE 8000
CMD ["go", "run", "main.go"]