amangs commited on
Commit
5ea1a6e
·
verified ·
1 Parent(s): 1c1f9d0

Fix Dockerfile variable syntax

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -4
Dockerfile CHANGED
@@ -1,13 +1,22 @@
1
  FROM node:26.3.0-alpine
2
 
3
  # Install Python 3, build tools, sqlite3 CLI, and py3-virtualenv
4
- RUN apk add --no-cache git python3 py3-pip py3-virtualenv make g++ sqlite
 
 
 
 
 
 
 
5
 
6
  WORKDIR /app
7
 
8
  # Download FreeLLMAPI release
9
  ARG FREELLMAPI_VERSION="v0.2.8"
10
- RUN apk add --no-cache curl && curl -L "https://github.com/tashfeenahmed/freellmapi/archive/refs/tags/"".tar.gz" | tar xz --strip-components=1
 
 
11
 
12
  # Install Node dependencies and build
13
  RUN npm install && npm run build
@@ -16,7 +25,9 @@ RUN npm install && npm run build
16
  RUN mkdir -p /app/server/data
17
 
18
  # Create Python virtual environment and install huggingface-hub
19
- RUN python3 -m venv /opt/venv && /opt/venv/bin/pip install --upgrade pip && /opt/venv/bin/pip install huggingface-hub
 
 
20
 
21
  # Copy backup manager and entrypoint
22
  COPY backup_manager.py /app/backup_manager.py
@@ -35,6 +46,6 @@ ENV REALTIME_CHECK_INTERVAL=30
35
  ENV MIN_BACKUP_INTERVAL=60
36
  ENV KEEP_BACKUPS=10
37
  # Add venv to PATH so entrypoint can use python3/pip directly
38
- ENV PATH="/opt/venv/bin:\/home/hermes/.npm-global/bin:/home/hermes/.hermes/hermes-agent/venv/bin:/home/hermes/.hermes/hermes-agent/node_modules/.bin:/usr/bin:/home/hermes/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/home/hermes/.hermes/bin"
39
 
40
  ENTRYPOINT ["/entrypoint.sh"]
 
1
  FROM node:26.3.0-alpine
2
 
3
  # Install Python 3, build tools, sqlite3 CLI, and py3-virtualenv
4
+ RUN apk add --no-cache \
5
+ git \
6
+ python3 \
7
+ py3-pip \
8
+ py3-virtualenv \
9
+ make \
10
+ g++ \
11
+ sqlite
12
 
13
  WORKDIR /app
14
 
15
  # Download FreeLLMAPI release
16
  ARG FREELLMAPI_VERSION="v0.2.8"
17
+ RUN apk add --no-cache curl && \
18
+ curl -L "https://github.com/tashfeenahmed/freellmapi/archive/refs/tags/${FREELLMAPI_VERSION}.tar.gz" | \
19
+ tar xz --strip-components=1
20
 
21
  # Install Node dependencies and build
22
  RUN npm install && npm run build
 
25
  RUN mkdir -p /app/server/data
26
 
27
  # Create Python virtual environment and install huggingface-hub
28
+ RUN python3 -m venv /opt/venv && \
29
+ /opt/venv/bin/pip install --upgrade pip && \
30
+ /opt/venv/bin/pip install huggingface-hub
31
 
32
  # Copy backup manager and entrypoint
33
  COPY backup_manager.py /app/backup_manager.py
 
46
  ENV MIN_BACKUP_INTERVAL=60
47
  ENV KEEP_BACKUPS=10
48
  # Add venv to PATH so entrypoint can use python3/pip directly
49
+ ENV PATH="/opt/venv/bin:$PATH"
50
 
51
  ENTRYPOINT ["/entrypoint.sh"]