use make to build binaries

This commit is contained in:
Gianni Carafa
2023-12-05 15:11:13 +01:00
parent 692b2a5d17
commit a56ec1f861
2 changed files with 2 additions and 6 deletions

View File

@@ -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"]

View File

@@ -3,7 +3,7 @@ services:
ladder:
image: ghcr.io/everywall/ladder:latest
container_name: ladder
#build: .
build: .
#restart: always
#command: sh -c ./ladder
environment: