Initial commit
This commit is contained in:
commit
6ca6852389
8 changed files with 151 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
FROM golang:1.19.1 as build
|
||||
|
||||
LABEL author="vlbeaudoin"
|
||||
|
||||
WORKDIR /go/src/app
|
||||
|
||||
COPY go.mod go.sum main.go server.go ./
|
||||
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app .
|
||||
|
||||
# Alpine
|
||||
|
||||
FROM alpine:3.17.1
|
||||
|
||||
RUN apk update && apk add file --no-cache && apk upgrade --no-cache
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /go/src/app ./
|
||||
|
||||
CMD ["./app"]
|
Loading…
Add table
Add a link
Reference in a new issue