This repository was archived by the owner on Jul 16, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 1.21 KB
/
Dockerfile
File metadata and controls
40 lines (30 loc) · 1.21 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
FROM haskell:9.2.3-buster as hadolint
RUN git clone --depth 1 --branch v2.10.0 https://github.com/hadolint/hadolint
WORKDIR /hadolint
RUN stack install --install-ghc
FROM golang:1.18.3-bullseye as checkmake
ENV BUILDER_NAME="Pavel Sapezhka"
ENV BUILDER_EMAIL="me@weastur.com"
RUN apt-get update && apt-get install -y --no-install-recommends \
pandoc \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 --branch 0.2.1 https://github.com/mrtazz/checkmake
WORKDIR /go/checkmake
RUN make
FROM rust:1.62.0-bullseye as dotenv
RUN git clone --depth 1 --branch v3.2.0 https://github.com/dotenv-linter/dotenv-linter.git
WORKDIR /dotenv-linter
RUN cargo build --release
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y --no-install-recommends \
yamllint \
shellcheck \
npm \
python3-pip \
&& pip3 install --no-cache-dir sqlfluff \
&& npm install -g markdownlint-cli \
&& npm install -g jsonlint \
&& rm -rf /var/lib/apt/lists/*
COPY --from=hadolint /root/.local/bin/hadolint /usr/local/bin/hadolint
COPY --from=checkmake /go/checkmake/checkmake /usr/local/bin/checkmake
COPY --from=dotenv /dotenv-linter/target/release/dotenv-linter /usr/local/bin/dotenv-linter