+ New

fierj

Public

Tiny personal git forge

659a06427441268482599d7b2070e01bbc90779c
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a823423
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM golang:1.26-alpine AS builder
+RUN apk add --no-cache git
+WORKDIR /src
+COPY go.mod go.sum* ./
+RUN go mod download 2>/dev/null || true
+COPY . .
+RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /fierj .
+
+FROM alpine:3.21
+RUN apk add --no-cache git ca-certificates tzdata
+COPY --from=builder /fierj /usr/local/bin/fierj
+ENV FIERJ_ADDR=:8080
+ENV FIERJ_DIR=/data/repos
+VOLUME /data/repos
+EXPOSE 8080
+ENTRYPOINT ["fierj"]