-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 891 Bytes
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 891 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
37
# Use official Python image
FROM python:3.11-slim
# Install required build tools and GUI dependencies
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
make \
libgl1 \
libegl1 \
libxkbcommon-x11-0 \
libfontconfig1 \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install uv
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:$PATH"
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy dependency files first for better caching
COPY pyproject.toml uv.lock README.md LICENSE ./
# Install dependencies
RUN uv sync --frozen --no-dev
# Copy the rest of your repo into the container
COPY . .
# Install the package in editable mode
RUN uv sync --frozen --no-dev
# Set the entry point for the Docker container
CMD ["uv", "run", "python", "-c", "import squadds; print('SQuADDS ready!')"]