first commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
FROM golang:1.24-alpine AS build
|
||||
WORKDIR /src
|
||||
COPY go.mod ./
|
||||
COPY main.go ./
|
||||
COPY static/ ./static/
|
||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /server .
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /server /server
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/server"]
|
||||
Reference in New Issue
Block a user