File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed
Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
2+ FROM node:lts-alpine AS builder
3+
4+ WORKDIR /build
5+
6+ RUN npm install -g markdownlint-cli2 pkg
7+ RUN npx pkg node_modules/markdownlint-cli2 \
8+ --targets node18-alpine-x64 \
9+ --output ./markdownlint
10+
211FROM python:3.12-alpine
312
413RUN apk add --no-cache \
514 bash \
615 git \
7- ca-certificates
16+ ca-certificates \
17+ libstdc++
818
9- COPY --from=davidanson/markdownlint-cli2:latest /usr/local/bin/markdownlint-cli2 /usr/local/bin/markdownlint-cli2
10-
11- WORKDIR /app
19+ COPY --from=builder --chmod=755 /build/markdownlint /usr/local/bin/markdownlint-cli2
1220
1321COPY requirements.txt .
14- COPY .markdownlint.json .
15-
1622RUN pip install --upgrade pip && \
1723 pip install --no-cache-dir -r requirements.txt
1824
25+ WORKDIR /app
26+
27+ COPY .markdownlint.json .
28+
1929COPY scripts/ /app/scripts/
2030COPY bin/ /usr/local/bin/
21- RUN for f in /usr/local/bin/*.sh; do mv "$f" "${f%.sh}" ; done && \
22- chmod +x /usr/local/bin/*
2331
2432CMD ["/usr/local/bin/mkdocs-build" ]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments