-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnv.Containerfile
More file actions
47 lines (36 loc) · 1.24 KB
/
Env.Containerfile
File metadata and controls
47 lines (36 loc) · 1.24 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
44
45
46
47
# Base image with CUDA and Python support
ARG PYTHON_VERSION=3.10
FROM python:${PYTHON_VERSION}
# Set noninteractive frontend for apt
ENV DEBIAN_FRONTEND=noninteractive
# Ensure pip is up to date
RUN python -m pip install --upgrade pip
# INSTALL UV
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install System Dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
libgl1 \
libglib2.0-0 \
python3-wxgtk4.0 \
&& rm -rf /var/lib/apt/lists/*
# INSTALL PROJECTAIRSIM
RUN mkdir /pyenv
WORKDIR /tmp
RUN git clone --filter=blob:none --no-checkout https://github.com/iamaisim/ProjectAirSim.git \
&& cd ProjectAirSim \
&& git sparse-checkout init --cone \
&& git sparse-checkout set client/python/projectairsim \
&& git checkout 3302010393ac896e8dffc16cbbe2ec1e05d844e3 \
&& mv client/python/projectairsim /pyenv/projectairsim \
&& cd / \
&& rm -rf /tmp/ProjectAirSim
# INSTALL DEPENDENCIES
WORKDIR /pyenv
COPY ./pyproject.toml ./
RUN uv export --format requirements-txt --output-file requirements.txt && \
uv pip install --system -r requirements.txt
RUN python -m pip install -e /pyenv/projectairsim
RUN uv pip install --system pre-commit
RUN uv cache clean