Initial Commit

This commit is contained in:
Benjamin Ritter
2023-12-20 17:06:44 +01:00
parent 061998ed41
commit d6f7aebce2
5 changed files with 83 additions and 0 deletions

11
Dockerfile Normal file
View 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"]