mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
add golang example
This commit is contained in:
9
go/gin/Dockerfile
Normal file
9
go/gin/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user