This repository has been archived on 2024-03-03. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
adlin/pkg/wg-manager/Dockerfile
Renovate Bot 24ff9d3688
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update dependency golang to v1.18
2022-03-16 01:01:43 +00:00

22 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"]