1
This commit is contained in:
1 parent
e72012cfc2
commit
85eb501a42
11 files changed
+145
-2293
No files matched your search
@@ -0,0 +1,18 @@
|
||||
FROM golang:1.24-alpine AS builder
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY docker/dist-server/ ./
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/dist-server .
|
||||
|
||||
FROM scratch
|
||||
|
||||
WORKDIR /www
|
||||
|
||||
COPY --from=builder /out/dist-server /dist-server
|
||||
COPY dist/ /www/
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["/dist-server"]
|
||||
Reference in new issue
Block a user