diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 4830d103..520df9b9 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -6,17 +6,23 @@ pipeline: vieter: image: 'chewingbever/vlang:latest' group: 'build' + environment: + - LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static' commands: - make vieter debug: image: 'chewingbever/vlang:latest' + environment: + - LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static' group: 'build' commands: - make debug prod: image: 'chewingbever/vlang:latest' + environment: + - LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static' group: 'build' commands: - make prod diff --git a/Dockerfile.builder b/Dockerfile.builder index b8e45aa7..d45fe830 100644 --- a/Dockerfile.builder +++ b/Dockerfile.builder @@ -14,6 +14,7 @@ RUN apk --no-cache add \ git make upx gcc bash \ musl-dev \ openssl-libs-static openssl-dev \ + zlib-static bzip2-static xz-dev expat-static zstd-static lz4-static \ sqlite-static sqlite-dev \ libx11-dev glfw-dev freetype-dev \ libarchive-static libarchive-dev \ diff --git a/Makefile b/Makefile index 38593bee..bf77b629 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ run: vieter .PHONY: run-prod run-prod: prod - API_KEY=test REPO_DIR=data LOG_LEVEL=DEBUG ./vieter-prod + API_KEY=test REPO_DIR=data LOG_LEVEL=DEBUG ./pvieter # Same as run, but restart when the source code changes .PHONY: watch