From 374f79388c1086ac86ab8d7e19ce75a9a44b8a81 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Tue, 18 Mar 2025 17:48:55 +0300 Subject: [PATCH] ci/cd: remove ssh binary from Docker builds --- Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 191bc33..3998577 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,6 @@ WORKDIR /build/sarafu-vise RUN echo "Building on $BUILDPLATFORM, building for $TARGETPLATFORM" RUN go mod download RUN go build -tags logtrace,online -o sarafu-at -ldflags="-X main.build=${BUILD} -s -w" cmd/africastalking/main.go -RUN go build -tags logtrace,online -o sarafu-ssh -ldflags="-X main.build=${BUILD} -s -w" cmd/ssh/main.go FROM debian:bookworm-slim @@ -37,7 +36,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /service COPY --from=build /build/sarafu-vise/sarafu-at . -COPY --from=build /build/sarafu-vise/sarafu-ssh . COPY --from=build /build/sarafu-vise/LICENSE . COPY --from=build /build/sarafu-vise/README.md . COPY --from=build /build/sarafu-vise/services ./services @@ -45,6 +43,5 @@ COPY --from=build /build/sarafu-vise/.env.example . RUN mv .env.example .env EXPOSE 7123 -EXPOSE 7122 CMD ["./sarafu-at"]