12 lines
152 B
Docker
12 lines
152 B
Docker
FROM golang:1.14.6-alpine3.12
|
|
RUN mkdir /src
|
|
ADD . /src
|
|
WORKDIR /src
|
|
|
|
EXPOSE 8080
|
|
|
|
RUN go get -u ./...
|
|
RUN go build -o main .
|
|
|
|
ENTRYPOINT ["/src/main"]
|