-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 1.01 KB
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
38
39
40
41
42
43
FROM ubuntu:22.04
# Disable interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
# cmake and build-essential for building some python packages
# ffmpeg for video processing
# git for installing dependencies from git
# libgl1 and libglib2.0-0 for opencv and potential gui deps
# python3.10 and related tools
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
ffmpeg \
git \
libgl1 \
libglib2.0-0 \
python3.10 \
python3.10-venv \
python3.10-dev \
&& rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Set working directory
WORKDIR /opentau
# Copy project files
COPY . .
# Create virtual environment and install dependencies
# We explicitly use the system python 3.10 for the venv
RUN uv venv .venv --python /usr/bin/python3.10 && \
. .venv/bin/activate && \
uv sync --extra libero --extra dev
# Set environment variables
ENV PATH=".venv/bin:$PATH"
# Default command
CMD ["/bin/bash"]