Renovate Bot
5d458da103
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
401 B
Docker
23 lines
401 B
Docker
FROM golang:1.19-alpine3.15 as gobuild
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /go/src/wg-manager
|
|
|
|
ADD cmd ./
|
|
|
|
RUN go build -v -ldflags="-s -w" -o wg-manager
|
|
|
|
|
|
FROM alpine:3.17
|
|
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
|
|
|
RUN apk add --no-cache --initdb \
|
|
wireguard-tools-wg
|
|
|
|
EXPOSE 8081
|
|
|
|
COPY --from=gobuild /go/src/wg-manager/wg-manager /bin/wg-manager
|
|
|
|
ENTRYPOINT ["/bin/wg-manager"]
|