Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
######################## WRITE YOUR DOCKERFILE SCRIPT HERE #########################
|
| 3 |
-
|
| 4 |
# Use the official Python base image
|
| 5 |
FROM python:3.11-slim
|
| 6 |
|
|
@@ -8,10 +5,10 @@ FROM python:3.11-slim
|
|
| 8 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 9 |
ENV PYTHONUNBUFFERED=1
|
| 10 |
|
| 11 |
-
# Set
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
-
# Copy
|
| 15 |
COPY . /app
|
| 16 |
|
| 17 |
# Install system dependencies
|
|
@@ -23,9 +20,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 23 |
|
| 24 |
# Install Python dependencies
|
| 25 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 26 |
-
&& pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 27 |
|
| 28 |
-
# Expose
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
# Run the app
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Use the official Python base image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
|
|
|
| 5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 6 |
ENV PYTHONUNBUFFERED=1
|
| 7 |
|
| 8 |
+
# Set working directory
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
+
# Copy app code
|
| 12 |
COPY . /app
|
| 13 |
|
| 14 |
# Install system dependencies
|
|
|
|
| 20 |
|
| 21 |
# Install Python dependencies
|
| 22 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 23 |
+
&& pip install --no-cache-dir -r requirements.txt \
|
| 24 |
+
&& pip install --no-cache-dir git+https://github.com/mem0-ai/mem0.git # ✅ Install mem0 from GitHub
|
| 25 |
|
| 26 |
+
# Expose Gradio port
|
| 27 |
EXPOSE 7860
|
| 28 |
|
| 29 |
# Run the app
|