Nettoyage
This commit is contained in:
9
hooks/containerbuild/marp-compiler/add-packages
Executable file
9
hooks/containerbuild/marp-compiler/add-packages
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo 'RUN apk add --no-cache python3 bash' >> Dockerfile
|
||||
echo 'ENTRYPOINT [""]' >> Dockerfile
|
||||
echo 'RUN npm install -g --save-prod markdown-it markdown-it-mark markdown-it-include markdown-it-anchor markdown-it-table-of-contents' >> Dockerfile
|
||||
echo 'ENV NODE_PATH=/usr/local/lib/node_modules' >> Dockerfile
|
||||
echo 'RUN mkdir /dist && mkdir /dist/private && mkdir /dist/public' >> Dockerfile
|
13
hooks/containerbuild/marp-compiler/add-resources
Executable file
13
hooks/containerbuild/marp-compiler/add-resources
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
if [ -e './datasets/fonts' ]
|
||||
then
|
||||
for font_file in $(find . -wholename "./datasets/fonts/*.ttf")
|
||||
do
|
||||
echo 'COPY datasets/fonts/$font_file /root/.fonts/$font_file' >> Dockerfile
|
||||
done
|
||||
fi
|
||||
exit 0
|
Reference in New Issue
Block a user