Skip to content

Commit

Permalink
update docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
luv-singh-ai committed Nov 25, 2024
1 parent 69a1b6a commit 83fa34e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ services:
- PORTKEY_VIRTUAL_KEY_A=${PORTKEY_VIRTUAL_KEY_A}
restart: unless-stopped
sukoon-frontend:
build:
context: ./frontend-vite
args:
SUPABASE_API_KEY: ${SUPABASE_API_KEY}
SUPABASE_AUTHORIZATION_TOKEN: ${SUPABASE_AUTHORIZATION_TOKEN}
BACKEND_ENDPOINT: ${BACKEND_ENDPOINT}
build: ./frontend-vite # ./sukoon-frontend for earlier version
# build:
# context: ./frontend-vite
# args:
# SUPABASE_API_KEY: ${SUPABASE_API_KEY}
# SUPABASE_AUTHORIZATION_TOKEN: ${SUPABASE_AUTHORIZATION_TOKEN}
# BACKEND_ENDPOINT: ${BACKEND_ENDPOINT}
ports:
- "3002:80" # "3002:3000" for earlier version
restart: unless-stopped
Expand Down
4 changes: 2 additions & 2 deletions frontend-vite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ ARG BACKEND_ENDPOINT="https://sukoon-api.pplus.ai/"

# set a working directory
WORKDIR /app
COPY package*.json /app/
COPY . /app

RUN rm -rf node_modules
RUN npm install
COPY . /app

# build the react application to generate an optimized static build
# the build files will be stored in 'dist' directory
RUN VITE_SUPABASE_API_KEY=${SUPABASE_API_KEY} VITE_SUPABASE_AUTHORIZATION_TOKEN=${SUPABASE_AUTHORIZATION_TOKEN} \
Expand Down

0 comments on commit 83fa34e

Please sign in to comment.