10
0
goredirect/Dockerfile

10 lines
262 B
Docker
Raw Normal View History

2021-05-25 20:28:00 +00:00
FROM golang:1.16-alpine
RUN apk add libcap git
2021-06-17 13:43:50 +00:00
WORKDIR $GOPATH/src/git.k-space.ee/k-space/goredirect
2021-06-17 13:53:36 +00:00
COPY go.mod go.sum .
2021-05-25 20:28:00 +00:00
RUN go mod download
COPY main.go .
RUN go build -o goredirect main.go
RUN setcap 'cap_net_bind_service=+ep' goredirect
CMD ["./goredirect"]