From d9a1df6ee774d0e83f35e66925b57547ef322da7 Mon Sep 17 00:00:00 2001 From: Mayank Chhabra Date: Tue, 15 Aug 2023 04:42:03 +0700 Subject: [PATCH] Add build to docker-compose.yml and remove workflow --- .github/workflows/on-push.yml | 4 ++-- docker-compose.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 133f602..b64b8e2 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -2,8 +2,8 @@ name: Build Docker images on master push on: push: - branches: - - master + tag: + - * jobs: build_api: diff --git a/docker-compose.yml b/docker-compose.yml index 7383d71..ab96ff3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,16 +2,16 @@ version: '3.6' services: llama-gpt-api: - image: mayankchhabra/llama-gpt-api - ports: - - 9999:8000 + build: + context: . + dockerfile: api.Dockerfile environment: MODEL: '/models/llama-2-7b-chat.bin' llama-gpt-ui: build: - context: ./ui - dockerfile: Dockerfile + context: . + dockerfile: ui.Dockerfile ports: - 3000:3000 environment: