add Dockerfile, update README (license, temp config, docker instructions)

This commit is contained in:
Ash B 2026-04-17 19:59:31 +00:00
parent 0099455311
commit 229a561c4b
2 changed files with 34 additions and 1 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM golang:1.24-alpine AS builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o proxx
FROM alpine:3.21
RUN apk add --no-cache ca-certificates
COPY --from=builder /build/proxx /usr/local/bin/proxx
COPY --from=builder /build/config.yaml /etc/proxx/config.yaml
EXPOSE 8080
ENTRYPOINT ["proxx"]