-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 709 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 709 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
FROM python:3.12-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Install uv, cookiecutter, pre-commit, and pyright
RUN pip install --no-cache-dir uv cookiecutter pre-commit pyright
# Set git config for Docker environment
RUN git config --global user.email "test@example.com" && \
git config --global user.name "Test User" && \
git config --global init.defaultBranch main
# Set working directory
WORKDIR /workspace
# Copy the cookiecutter template
COPY . /template
# Copy and setup the test script
COPY test-template.sh /test-template.sh
RUN chmod +x /test-template.sh
CMD ["/test-template.sh"]