mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2025-02-22 15:21:03 -05:00
Reduce Dockerfile size from 216Mi -> 50Mi
This commit is contained in:
parent
b74a2626a9
commit
b3a58b610f
1 changed files with 7 additions and 2 deletions
|
@ -1,9 +1,14 @@
|
|||
FROM python:3-alpine
|
||||
FROM python:3-alpine AS base
|
||||
|
||||
RUN apk add --no-cache bash gcc musl-dev && \
|
||||
pip install 'yamllint>=1.25.0' && \
|
||||
pip install --root /yamllint 'yamllint>=1.25.0' && \
|
||||
rm -rf ~/.cache/pip
|
||||
|
||||
FROM python:3-alpine AS builder
|
||||
|
||||
COPY --from=base /yamllint /yamllint
|
||||
ENV PATH="/yamllint/usr/local/bin:${PATH}"
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
Loading…
Add table
Reference in a new issue