From 2ac55eec07166806e196285074a415d50091be28 Mon Sep 17 00:00:00 2001 From: Era Dorta Date: Mon, 4 May 2026 13:02:51 +0100 Subject: [PATCH] Split comments in docker build --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8103d7f..7b20209 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,16 +145,18 @@ COPY src/go.sum /tmp/signal-cli-rest-api-src/ COPY src/plugin_loader.go /tmp/signal-cli-rest-api-src/ COPY src/docs/add_v1_receive_schemas.go /tmp/signal-cli-rest-api-src/docs/add_v1_receive_schemas.go -# build signal-cli-rest-api RUN ls -la /tmp/signal-cli-rest-api-src + +# build the docs RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefault -# Manually add the json schemas for the receive V1 endpoint +# manually add the json schemas for the receive V1 endpoint to the docs RUN if [ "$(uname -m)" = "x86_64" ]; then \ cd /tmp/signal-cli-rest-api-src/docs \ && go run add_v1_receive_schemas.go /tmp/signal-cli-${SIGNAL_CLI_VERSION}-source/build/generated/META-INF/schemas; \ fi; +# build signal-cli-rest-api RUN cd /tmp/signal-cli-rest-api-src && go build -o signal-cli-rest-api main.go RUN cd /tmp/signal-cli-rest-api-src && go test ./client -v && go test ./utils -v