Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
FROM node:22-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# Install system dependencies
|
| 4 |
-
RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip && \
|
|
|
|
| 5 |
pip install --no-cache-dir huggingface_hub && \
|
| 6 |
rm -rf /var/lib/apt/lists/*
|
| 7 |
|
|
|
|
| 1 |
FROM node:22-slim
|
| 2 |
|
| 3 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
+
ENV VIRTUAL_ENV=/opt/venv
|
| 5 |
+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
| 6 |
+
|
| 7 |
# Install system dependencies
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip python3-venv && \
|
| 9 |
+
python3 -m venv $VIRTUAL_ENV && \
|
| 10 |
pip install --no-cache-dir huggingface_hub && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|