forked from MemTensor/MemOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 724 Bytes
/
Dockerfile
File metadata and controls
35 lines (27 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Base image
FROM python:3.11-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
build-essential \
libffi-dev \
python3-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Set Hugging Face mirror
ENV HF_ENDPOINT=https://hf-mirror.com
# Install Python packages
COPY docker/requirements.txt .
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY docker/ ./docker/
COPY src/ ./src/
# Set Python import path
ENV PYTHONPATH=/app/src
# Expose port
EXPOSE 8000
# Start the docker
CMD ["uvicorn", "memos.api.product_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]