From aa8e0c1f067c12e817d7035c0bd54cd9bd6555b3 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Thu, 19 Feb 2026 19:04:29 +0100 Subject: [PATCH] add docker push to docker-hub --- Dockerfile | 7 ++++--- Makefile | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b1571d..e30de03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,10 @@ COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo \ - -ldflags="-w -s" -trimpath -o survey ./cmd/survey/ + -ldflags="-w -s" -trimpath -o pm ./cmd/survey/ FROM gcr.io/distroless/static-debian13 -COPY --from=builder /app/survey /survey +WORKDIR /data +COPY --from=builder /app/pm /pm EXPOSE 8080 -ENTRYPOINT ["/survey"] \ No newline at end of file +ENTRYPOINT ["/pm"] \ No newline at end of file diff --git a/Makefile b/Makefile index 5d49513..64b1af4 100644 --- a/Makefile +++ b/Makefile @@ -18,10 +18,13 @@ build: tidy go build -o ./bin/survey ./cmd/survey docker-build: - @docker build -t survey . + @docker build -t telikz/lazypm . docker-run: - @docker run -it -p 8080:8080 survey:latest + @docker run -it -p 8080:8080 -v "$PWD:/data" telikz/lazypm:latest start + +docker-push: + @docker push telikz/lazypm:latest start: @go run ./cmd/survey start