Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cea1ae23ac |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
FROM golang:1.16-alpine AS builder
|
FROM golang:1.16-alpine AS builder
|
||||||
RUN apk update && apk add --no-cache git && apk add -U --no-cache ca-certificates
|
RUN apk update && apk add --no-cache git && apk add -U --no-cache ca-certificates
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
ADD go.mod go.sum ./
|
ADD go.mod ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
ADD . .
|
ADD . .
|
||||||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o echoserver .
|
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o echoserver .
|
||||||
|
|||||||
Reference in New Issue
Block a user