clean: remove trash, update .gitignore

This commit is contained in:
“Naeel”
2026-07-01 17:40:40 +04:00
parent dd1007d24c
commit ebd2c88500
7 changed files with 7 additions and 372 deletions
-23
View File
@@ -1,23 +0,0 @@
# Build Stage
FROM golang:1.24-alpine AS builder
WORKDIR /app
# Only copy what's needed for the registry server
COPY go.mod go.sum ./
RUN go mod download
COPY cmd/registry ./cmd/registry
# Build statically
RUN CGO_ENABLED=0 GOOS=linux go build -o /registry-server ./cmd/registry
# Run Stage
FROM alpine:3.19
WORKDIR /app
COPY --from=builder /registry-server /app/registry-server
# Registry server uses HTTPS for S3, so CA certs are good to have
RUN apk add --no-cache ca-certificates
USER 1000:1000
EXPOSE 8080
CMD ["/app/registry-server"]