-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 764 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
36
# Dockerfile
FROM python:3.12-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
librocksdb-dev \
iputils-ping \
procps \
net-tools \
rustc \
cargo \
&& rm -rf /var/lib/apt/lists/*
# Install uv via shell installer
RUN curl -sSL https://astral.sh/uv/install.sh | sh -s -- \
&& echo "uv installed to:" && which uv || true
ENV PATH="/root/.local/bin:$PATH"
# Set working directory
WORKDIR /app
# Copy the entire application
COPY . .
RUN uv sync
# Run the application
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]