Skip to content

Commit

Permalink
feat(ci): use Alpine based Python image instead of Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemkaKun authored Oct 7, 2024
1 parent 8299edf commit 9637b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
File renamed without changes.
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
FROM debian:bookworm-slim
FROM python:3.12.7-alpine

ENV DEBIAN_FRONTEND=noninteractive

# NOTE: For some reason `pipx ensurepath` doesn't work, so we are making yammlint available in PATH manually
RUN apt-get update && apt-get install -y --no-install-recommends pipx && pipx install yamllint \
&& ln -s ~/.local/bin/yamllint /usr/local/bin/yamllint \
&& apt-get purge -y --auto-remove \
&& apt-get clean && rm -rf /var/cache/apt/archives/* \
&& rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /usr/share/locale /usr/share/zoneinfo
RUN pip install --no-cache yamllint

ADD ./ /linter_workdir

Expand Down

0 comments on commit 9637b35

Please sign in to comment.