10
0
goredirect/Dockerfile
Lauri Võsandi c5261bfcd5
All checks were successful
gitea-kspace/goredirect/pipeline/head This commit looks good
continuous-integration/drone Build is passing
Bump Go modules
2022-02-09 06:38:54 +02:00

10 lines
263 B
Docker

FROM golang:1.16-alpine
RUN apk add libcap git
WORKDIR $GOPATH/src/git.k-space.ee/k-space/goredirect
COPY go.mod go.sum ./
RUN go mod download
COPY main.go .
RUN go build -o goredirect main.go
RUN setcap 'cap_net_bind_service=+ep' goredirect
CMD ["./goredirect"]