-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (42 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
48 lines (42 loc) · 1.14 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
FROM python:3.12-slim AS builder
WORKDIR /app
# Install GCC 13 and other dependencies
RUN apt-get update && \
apt-get install -y \
gcc-13 \
g++-13 \
libstdc++-13-dev \
git \
curl \
wget \
cmake \
nano \
unzip \
ninja-build \
pkg-config \
libffi-dev \
libprotobuf-dev \
protobuf-compiler \
libgflags-dev \
libssl-dev \
sudo \
build-essential \
gnupg \
&& apt-get clean && rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100
COPY .git .git
COPY .gitmodules .gitmodules
COPY scripts/ ./scripts/
RUN chmod +x -R /app/scripts
RUN mkdir -p /app/libs/openai-cpp /app/libs/tokenizers-cpp
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Run your scripts
RUN /app/scripts/install_python_dependencies.sh
RUN /app/scripts/install_torch.sh
RUN /app/scripts/install_libs.sh
RUN /app/scripts/configure_conan_profile.sh
# COPY . .
CMD ["/bin/bash"]