Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Multi-stage build: Start with Python 3.12 base
FROM python:3.12-bookworm as python-base
FROM python:3.12-bookworm AS python-base

# Main stage: Use FalkorDB base and copy Python 3.12
FROM falkordb/falkordb:latest
Expand Down Expand Up @@ -50,6 +50,10 @@ RUN if [ -f ./app/package-lock.json ]; then \
echo "No frontend package.json found, skipping npm install"; \
fi

COPY ./app ./app

RUN npm --prefix ./app run build

# Copy application code
COPY . .

Expand Down
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ build-prod:
npm --prefix ./app run build

test: build-dev test-unit test-e2e ## Run all tests



test-unit: ## Run unit tests only
pipenv run python -m pytest tests/ -k "not e2e" --verbose
Expand Down Expand Up @@ -63,10 +61,10 @@ clean: ## Clean up test artifacts
find . -name "*.pyo" -delete

run-dev: build-dev ## Run development server
pipenv run uvicorn api.index:app --host 127.0.0.1 --port $${PORT:-5000} --reload
pipenv run uvicorn api.index:app --host $${HOST:-127.0.0.1} --port $${PORT:-5000} --reload

run-prod: build-prod ## Run production server
pipenv run uvicorn api.index:app --host 0.0.0.0 --port $${PORT:-5000}
pipenv run uvicorn api.index:app --host $${HOST:-0.0.0.0} --port $${PORT:-5000}

docker-falkordb: ## Start FalkorDB in Docker for testing
docker run -d --name falkordb-test -p 6379:6379 falkordb/falkordb:latest
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ else
fi

echo "FalkorDB is up - launching FastAPI (uvicorn)..."
exec uvicorn api.index:app --host 0.0.0.0 --port 5000 $RELOAD_FLAG
exec uvicorn api.index:app --host "${HOST:-0.0.0.0}" --port "${PORT:-5000}" $RELOAD_FLAG
Loading