You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
246 B

FROM golang:1.18
# Set app workdir
WORKDIR /go/src/app
# Copy dependencies list
COPY go.mod go.sum ./
# Download dependencies
RUN go mod download
# Copy application sources
COPY . .
# Build app
RUN go build -o app .
# Run app
CMD ["./app"]