mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 07:16:06 +08:00
2a98f82463
Bumps alpine from 3.20.0 to 3.20.2. --- updated-dependencies: - dependency-name: alpine dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
19 lines
434 B
Docker
19 lines
434 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.20.2
|
|
|
|
# add a c lib
|
|
# 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"]
|