This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
adlin/pkg/wg-manager/Dockerfile
Renovate Bot 67a24524fb
Some checks are pending
continuous-integration/drone/push Build is pending
chore(deps): update dependency golang to v1.18
2022-06-06 07:29:40 +00:00

23 lines
401 B
Docker

FROM golang:1.18-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.15
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"]