Fix Dockerfile variable syntax
Browse files- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
# Download FreeLLMAPI release
|
| 9 |
ARG FREELLMAPI_VERSION="v0.2.8"
|
| 10 |
-
RUN apk add --no-cache curl &&
|
|
|
|
|
|
|
| 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 &&
|
|
|
|
|
|
|
| 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:
|
| 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"]
|