-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 765 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
FROM python:3.12-slim
LABEL maintainer="Khalil Limem"
LABEL org.opencontainers.image.source="https://github.com/khalil/coderev"
LABEL org.opencontainers.image.description="AI-powered code review GitHub Action"
# Install git and other dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
jq \
&& rm -rf /var/lib/apt/lists/*
# Set up working directory
WORKDIR /app
# Copy package files first for better caching
COPY pyproject.toml README.md LICENSE ./
COPY src/ ./src/
# Install the package with all optional dependencies
RUN pip install --no-cache-dir ".[all]"
# Copy the entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]