Skip to content

Commit b70e063

Browse files
authored
Update Dockerfile
1 parent 10b7f54 commit b70e063

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

docker/Dockerfile

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Base image
21
FROM python:3.11-slim
32

4-
# Install dependencies
53
RUN apt-get update && apt-get install -y \
64
gcc \
75
g++ \
@@ -11,25 +9,17 @@ RUN apt-get update && apt-get install -y \
119
curl \
1210
&& rm -rf /var/lib/apt/lists/*
1311

14-
# Set working directory
1512
WORKDIR /app
1613

17-
# Set Hugging Face mirror
1814
ENV HF_ENDPOINT=https://hf-mirror.com
1915

20-
# Install Python packages
21-
COPY docker/requirements.txt .
16+
COPY requirements.txt .
2217
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
2318

24-
# Copy application code
25-
COPY docker/ ./docker/
26-
COPY src/ ./src/
19+
RUN pip install chonkie
2720

28-
# Set Python import path
21+
COPY ../. .
2922
ENV PYTHONPATH=/app/src
3023

31-
# Expose port
3224
EXPOSE 8000
33-
34-
# Start the docker
3525
CMD ["uvicorn", "memos.api.product_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

0 commit comments

Comments
 (0)