forked from vllm-project/semantic-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.precommit
More file actions
37 lines (28 loc) · 922 Bytes
/
Dockerfile.precommit
File metadata and controls
37 lines (28 loc) · 922 Bytes
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
FROM golang:1.24
# Install Base env
RUN apt-get update && apt-get install -y \
make \
build-essential \
pkg-config \
python3 \
libssl-dev \
ca-certificates \
python3-pip
# Install Node.js and npm
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt-get install -y nodejs
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Markdown
RUN npm install -g markdownlint-cli
# Install pre-commit and tools
RUN pip install --break-system-packages pre-commit
# Yamllint
RUN pip install --break-system-packages yamllint
# CodeSpell
RUN pip install --break-system-packages codespell
# Shellcheck
RUN pip install --break-system-packages shellcheck-py
# Golangci-lint
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0