fix: static binary build, debian base image, env_file
This commit is contained in:
parent
8561f59beb
commit
11bcd78a13
2 changed files with 3 additions and 3 deletions
|
|
@ -7,9 +7,9 @@ services:
|
||||||
- "9000"
|
- "9000"
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/nextworkspace/:/opt/nextworkspace/
|
- /opt/nextworkspace/:/opt/nextworkspace/
|
||||||
- /opt/nextworkspace/.env:/opt/nextworkspace/.env
|
|
||||||
working_dir: /opt/nextworkspace
|
working_dir: /opt/nextworkspace
|
||||||
command: /opt/nextworkspace/nextworkspace
|
command: /opt/nextworkspace/nextworkspace
|
||||||
|
env_file: /opt/nextworkspace/.env
|
||||||
environment:
|
environment:
|
||||||
- CONFIG_DIR=/opt/nextworkspace/config/nextworkspace
|
- CONFIG_DIR=/opt/nextworkspace/config/nextworkspace
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,9 @@ cd "$REPO_DIR"
|
||||||
echo "[1/6] Pulling latest code..."
|
echo "[1/6] Pulling latest code..."
|
||||||
git pull 2>/dev/null || true
|
git pull 2>/dev/null || true
|
||||||
|
|
||||||
echo "[2/6] Building binary..."
|
echo "[2/6] Building binary (static)..."
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
go build -o nextworkspace .
|
CGO_ENABLED=0 go build -o nextworkspace .
|
||||||
|
|
||||||
# --- Greenfield ---
|
# --- Greenfield ---
|
||||||
if [ "$GREENFIELD" = true ]; then
|
if [ "$GREENFIELD" = true ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue