add golang example

This commit is contained in:
Andras Bacsai
2024-04-26 13:42:59 +02:00
parent 4d01159846
commit 5002a66bef
4 changed files with 201 additions and 0 deletions

9
go/gin/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM golang:1.22 as build
WORKDIR /app
COPY . .
RUN go build -o /server .
FROM scratch
COPY --from=build /server /server
EXPOSE 3000
CMD ["/server"]