ci/Dockerfile

17 lines
395 B
Docker
Raw Normal View History

2024-09-25 19:05:57 +08:00
FROM almalinux:9 as installer
RUN dnf install \
--installroot /fakeroot \
--releasever 9 \
--setopt install_weak_deps=false \
--nodocs -y \
2024-09-25 20:16:33 +08:00
bash git nodejs npm python3 python3-pip \
2024-09-25 19:05:57 +08:00
&& dnf clean all --installroot /fakeroot
FROM scratch
COPY --from=installer /fakeroot /
RUN npm install -g prettier \
&& npm cache clean --force
2024-09-25 20:16:33 +08:00
RUN pip3 install --no-cache-dir ruff