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 5d458da103
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update alpine docker tag to v3.17
2022-11-20 23:09:35 +00:00

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