From 3a1b8e2c3b2e7b678dd3e136c0fb96434c0f3d7c Mon Sep 17 00:00:00 2001 From: Petr Glaser Date: Sat, 16 Nov 2024 22:26:05 +0100 Subject: [PATCH] feat(api): try use executable in pure Ubuntu image --- zerops.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/zerops.yml b/zerops.yml index b97d1567..7a0e3815 100644 --- a/zerops.yml +++ b/zerops.yml @@ -22,28 +22,24 @@ zerops: - bun install - bun run postinstall - bun run validateEnv - - bun x nx build backend + - bun x nx build:executable backend deployFiles: - - apps/backend/dist - - node_modules - - package.json + - apps/dist/backend cache: - node_modules - bun.lockb run: - base: bun@nightly + base: ubuntu@latest os: ubuntu ports: - port: 3000 httpSupport: true prepareCommands: - - echo "Upgrading bun to 1.1.34" - - bun upgrade - echo "Installing yt-dlp" - curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp - chmod a+rx /usr/bin/yt-dlp # Make executable - start: bun apps/backend/dist/index.js + start: apps/dist/backend deploy: readinessCheck: