File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
{{cookiecutter.project_name}} Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:{{ cookiecutter.python_version }}-slim-bookworm
2
2
3
- # Install uv
4
- RUN sudo apt-get update && sudo apt-get install -y curl && \
3
+ # Install uv (note: the script itself also requires curl)
4
+ RUN apt-get update && apt-get install -y curl && \
5
5
curl -LsSf https://astral.sh/uv/install.sh | sh && \
6
- source $HOME/.cargo/env
6
+ apt-get clean && rm -rf /var/lib/apt/lists/*
7
+
8
+ ENV PATH="/root/.local/bin:/project/.venv/bin/:${PATH}"
7
9
8
- # Move the files into the container
9
10
WORKDIR /project
10
- COPY . /project
11
11
12
12
# Install dependencies
13
+ COPY pyproject.toml uv.lock ./
13
14
RUN uv sync --no-dev --no-cache
14
15
16
+ # Copy the project files into the container
17
+ COPY . .
18
+
15
19
# Run the script
16
20
CMD uv run python src/scripts/main.py
You can’t perform that action at this time.
0 commit comments