Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Commit 23bc018

Browse files
Fixed cache directory
1 parent cd3c6f2 commit 23bc018

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ RUN apt-get update && apt-get install -y \
3232
COPY requirements.txt .
3333
RUN pip install --no-cache-dir -r requirements.txt
3434

35-
# Create non-root user
35+
# Create cache directory structure
36+
RUN mkdir -p /app/instance/cache/api
37+
38+
# Create non-root user and set ownership
3639
RUN useradd --create-home --shell /bin/bash app && chown -R app:app /app
3740
USER app
3841

app/api_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
CACHE_FILE = os.path.join(CACHE_DIR, 'nodes.json')
1515
CACHE_TTL_MINUTES = 5 # Refresh cache every 5 minutes
1616

17-
# Ensure cache directory exists
18-
os.makedirs(CACHE_DIR, exist_ok=True)
19-
2017
_cache: Dict[str, Any] = {
2118
'nodes': [],
2219
'last_updated': None,

0 commit comments

Comments
 (0)