fix: static binary build, debian base image, env_file

This commit is contained in:
Claus Lohmar 2026-07-10 15:35:35 +01:00
parent 8561f59beb
commit 11bcd78a13
2 changed files with 3 additions and 3 deletions

View file

@ -7,9 +7,9 @@ services:
- "9000"
volumes:
- /opt/nextworkspace/:/opt/nextworkspace/
- /opt/nextworkspace/.env:/opt/nextworkspace/.env
working_dir: /opt/nextworkspace
command: /opt/nextworkspace/nextworkspace
env_file: /opt/nextworkspace/.env
environment:
- CONFIG_DIR=/opt/nextworkspace/config/nextworkspace
networks:

View file

@ -29,9 +29,9 @@ cd "$REPO_DIR"
echo "[1/6] Pulling latest code..."
git pull 2>/dev/null || true
echo "[2/6] Building binary..."
echo "[2/6] Building binary (static)..."
export PATH=$PATH:/usr/local/go/bin
go build -o nextworkspace .
CGO_ENABLED=0 go build -o nextworkspace .
# --- Greenfield ---
if [ "$GREENFIELD" = true ]; then