mirror of
https://github.com/aykhans/gopkg-proxy.git
synced 2026-01-14 03:01:21 +00:00
first commit
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM golang:1.25.5-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN --mount=type=bind,target=. CGO_ENABLED=0 go build -ldflags="-s -w" -o /server .
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /server /server
|
||||
|
||||
EXPOSE 8421
|
||||
|
||||
ENTRYPOINT ["/server"]
|
||||
Reference in New Issue
Block a user