From 8b3551659f573920d87227fae114aa364e11b217 Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Tue, 5 Dec 2023 15:07:12 +0100 Subject: [PATCH] run make file in build job --- Dockerfile | 6 +----- docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0700571..c8f9ad4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY . . RUN go mod download -RUN CGO_ENABLED=0 GOOS=linux go build -o ladder cmd/main.go +RUN make build FROM debian:12-slim as release @@ -18,8 +18,4 @@ RUN chmod +x /app/ladder RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/* -#EXPOSE 8080 - -#ENTRYPOINT ["/usr/bin/dumb-init", "--"] - CMD ["sh", "-c", "/app/ladder"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 6325d09..f45e99a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,7 @@ services: ladder: image: ghcr.io/everywall/ladder:latest container_name: ladder - #build: . + build: . #restart: always #command: sh -c ./ladder environment: