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 2467eeb2d5
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update golang docker tag to v1.20
2023-03-18 16:09:53 +00:00

23 lines
397 B
Docker

FROM golang:1.20-alpine 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"]