Upload Dockerfile
Browse files- Dockerfile +1 -8
Dockerfile
CHANGED
|
@@ -6,16 +6,9 @@ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
|
| 6 |
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 9 |
-
# Install Node.js for PM2
|
| 10 |
-
RUN apt-get update && apt-get install -y curl && \
|
| 11 |
-
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
| 12 |
-
apt-get install -y nodejs && \
|
| 13 |
-
npm install -g pm2 && \
|
| 14 |
-
rm -rf /var/lib/apt/lists/*
|
| 15 |
-
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
# Hugging Face exposes port 7860
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
-
CMD ["
|
|
|
|
| 6 |
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
# Hugging Face exposes port 7860
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
+
CMD ["python", "main.py"]
|