Skip to content

Commit 12be12c

Browse files
committed
Update
1 parent 867faff commit 12be12c

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

Dockerfile

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
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+
211
FROM python:3.12-alpine
312

413
RUN 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

1321
COPY requirements.txt .
14-
COPY .markdownlint.json .
15-
1622
RUN pip install --upgrade pip && \
1723
pip install --no-cache-dir -r requirements.txt
1824

25+
WORKDIR /app
26+
27+
COPY .markdownlint.json .
28+
1929
COPY scripts/ /app/scripts/
2030
COPY 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

2432
CMD ["/usr/local/bin/mkdocs-build"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)