diff --git a/Dockerfile b/Dockerfile index 98187a5..2b0803a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,19 @@ +FROM docker.hnrx.net/golang:latest as build-stage + +RUN go version + +WORKDIR /app + +COPY * ./ + +RUN ls -lha + +RUN go mod download + +RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o manage-servers . + +RUN ls -lha + FROM docker.hnrx.net/alpine:latest # Create application directory