forked from FastFlowLM/FastFlowLM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (49 loc) · 1.34 KB
/
Copy pathDockerfile
File metadata and controls
56 lines (49 loc) · 1.34 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
48
49
50
51
52
53
54
55
56
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
LABEL org.opencontainers.image.description="FastFlowLM build environment with all dependencies pre-installed"
LABEL org.opencontainers.image.source="https://github.com/FastFlowLM/FastFlowLM"
# Prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
ARG UBUNTU_PPA=""
ARG BACKPORTS=""
# Set up PPA if needed
RUN if [ -n "$UBUNTU_PPA" ]; then \
apt update && apt install -y software-properties-common && \
add-apt-repository -y "$UBUNTU_PPA"; \
fi
# setup backports if needed
RUN if [ -n "$BACKPORTS" ]; then \
echo "deb http://deb.debian.org/debian $BACKPORTS main" >> /etc/apt/sources.list; \
apt update; \
apt install -t $BACKPORTS -y libxrt-dev; \
fi
# Install all build dependencies
RUN apt update && apt install -y \
build-essential \
cargo \
cmake \
debhelper-compat \
dpkg-dev \
fakeroot \
git \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libboost-dev \
libboost-program-options-dev \
libcurl4-openssl-dev \
libdrm-dev \
libfftw3-dev \
libreadline-dev \
libswresample-dev \
libswscale-dev \
libxrt-dev \
nasm \
ninja-build \
patchelf \
pkg-config \
rustc \
uuid-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
CMD ["/bin/bash"]