netmaker/Dockerfile
Matthew R Kasun 3fcbce7ab6 workflow updates
add goreleaser.yml
	use goreleaser action to build/publish netmaker/nmctl release assets
streamline Dockerfile
update go-builder to run on push to develop
2023-02-15 09:29:28 -05:00

17 lines
419 B
Docker

#first stage - builder
FROM gravitl/go-builder as builder
ARG tags
WORKDIR /app
COPY . .
RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -w" -tags ${tags} .
# RUN go build -tags=ee . -o netmaker main.go
FROM alpine:3.16.2
# set the working directory
WORKDIR /root/
RUN mkdir -p /etc/netclient/config
COPY --from=builder /app/netmaker .
COPY --from=builder /app/config config
EXPOSE 8081
ENTRYPOINT ["./netmaker"]