Initial Commit
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM golang:1.21
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY *.go ./
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /fiber-hello-world
|
||||
|
||||
FROM scratch
|
||||
COPY --from=0 /fiber-hello-world /fiber-hello-world
|
||||
CMD ["/fiber-hello-world"]
|
||||
Reference in New Issue
Block a user