Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (62 loc) · 2.04 KB
/
Copy pathDockerfile
File metadata and controls
70 lines (62 loc) · 2.04 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM debian:bookworm-slim
# 1. Configurar variables de entorno
ENV PATH="/root/.cargo/bin:${PATH}"
ENV RUSTUP_HOME="/root/.rustup"
ENV CARGO_HOME="/root/.cargo"
ENV DEBIAN_FRONTEND=noninteractive
# 2. Instalar todas las dependencias en una sola capa
RUN apt-get update && apt-get install -y --no-install-recommends \
# Compiladores y herramientas básicas
build-essential \
clang \
llvm \
curl \
python3 \
python3-pip \
jq \
bc \
time \
checksec \
git \
# Dependencias para gráficos y PDFs
aha \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-recommended \
dvipng \
cm-super \
ghostscript \
fonts-liberation \
fonts-freefont-otf \
# Herramientas de seguridad
binutils-dev \
libcap-dev \
libseccomp-dev \
libasan8 \
libubsan1 \
libclang-rt-dev \
# Dependencias de runtime
libpython3.11 \
&& rm -rf /var/lib/apt/lists/*
# 3. Instalar wkhtmltopdf (versión con Qt parcheado)
RUN apt-get update && \
curl -L -o /tmp/wkhtmltox.deb https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb && \
apt-get install -y --no-install-recommends /tmp/wkhtmltox.deb && \
rm /tmp/wkhtmltox.deb && \
rm -rf /var/lib/apt/lists/*
# 4. Instalar Rust y herramientas
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly && \
rustup component add rust-src rustfmt clippy && \
cargo install --locked cargo-binutils
# 5. Instalar bibliotecas Python
RUN pip3 install --break-system-packages --no-cache-dir matplotlib pandas seaborn numpy scipy statsmodels
# 6. Configurar fuentes para matplotlib
RUN mkdir -p /usr/share/fonts/truetype/freefont && \
ln -s /usr/share/fonts/truetype/freefont/FreeSans.ttf /usr/share/fonts/truetype/ && \
fc-cache -fv
# 7. Copiar el proyecto y configurar permisos
COPY . /app
WORKDIR /app
RUN chmod +x Pipeline.sh scripts/*.sh scripts/*.py
# 8. Configurar punto de entrada
ENTRYPOINT ["./Pipeline.sh"]