This commit is contained in:
zhbaor 2024-09-25 19:05:57 +08:00
commit 1e92545c48

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM almalinux:9 as installer
RUN dnf install \
--installroot /fakeroot \
--releasever 9 \
--setopt install_weak_deps=false \
--nodocs -y \
nodejs npm \
&& dnf clean all --installroot /fakeroot
FROM scratch
COPY --from=installer /fakeroot /
RUN npm install -g prettier \
&& npm cache clean --force