You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
694 B
21 lines
694 B
FROM ubuntu:24.04
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PYTHONPATH=/tmp/pythonpath
|
|
|
|
# deps install
|
|
COPY pyproject.toml __init__.py setup.sh /tmp/
|
|
COPY python/__init__.py /tmp/python/
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends sudo && /tmp/setup.sh
|
|
|
|
COPY pyproject.toml __init__.py $PYTHONPATH/panda/
|
|
COPY python/__init__.py $PYTHONPATH/panda/python/
|
|
RUN pip3 install --break-system-packages --no-cache-dir $PYTHONPATH/panda/[dev]
|
|
|
|
RUN git config --global --add safe.directory $PYTHONPATH/panda
|
|
|
|
# for Jenkins
|
|
COPY README.md panda.tar.* /tmp/
|
|
RUN mkdir -p /tmp/pythonpath/panda && \
|
|
tar -xvf /tmp/panda.tar.gz -C /tmp/pythonpath/panda/ || true
|
|
|