forked from MemoriLabs/Memori
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 710 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 710 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
# Use Python 3.12 as base image
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install uv for faster dependency management
RUN pip install uv
# Copy dependency files
COPY pyproject.toml uv.lock* ./
# Install dependencies (including dev dependencies)
RUN uv sync --all-extras
# Copy the rest of the application
COPY . .
# Install pre-commit hooks
RUN pip install pre-commit && pre-commit install || true
# Add venv to PATH so all tools are available
ENV PATH="/app/.venv/bin:$PATH"
# Default command opens a bash shell
CMD ["/bin/bash"]