-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 782 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
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
RUN mkdir /repomix
WORKDIR /repomix
# Copy project files
COPY . .
# Install PDM and dependencies, then build and install the package
# To reduce the size of the layer, these commands are executed in the same RUN command
RUN pip install --no-cache-dir pdm \
&& pdm install --prod \
&& pdm build \
&& pip install dist/*.whl \
&& pip uninstall -y pdm \
&& rm -rf /root/.cache/pip \
&& rm -rf /root/.cache/pdm
# Set working directory for user code
WORKDIR /app
# Verify installation
RUN repomix --version
RUN repomix --help
ENTRYPOINT ["repomix"]