-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 764 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
FROM ghcr.io/astral-sh/uv:debian
RUN apt update && apt install -y libusb-1.0-0-dev && apt clean
WORKDIR /app
RUN wget https://files.labjack.com/installers/LJM/Linux/x64/release/LabJack-LJM_2025-05-07.zip -O driver.zip && \
unzip driver.zip && \
./labjack_ljm_installer.run -- --no-restart-device-rules || true && \
rm driver.zip labjack_ljm_installer.run INSTALL.md
# ---- Cache-friendly dependency install ----
# Copy only dependency files first
COPY pyproject.toml uv.lock ./
# Install dependencies (no project code yet)
RUN uv sync --frozen --no-install-project
# ---- App layer ----
# Now copy the rest of the app
COPY . .
# Install project itself (fast, since deps are cached)
RUN uv sync --frozen
CMD ["uv", "run", "--offline", "server"]