Utiliser une variable d’environnement
This commit is contained in:
parent
ca586bd600
commit
4ec7fcff67
@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
export DESTDIR=/dist
|
cd /src
|
||||||
pushd /src
|
|
||||||
./build
|
./build
|
||||||
popd
|
|
||||||
|
8
hooks/containerbuild/doc-compiler/basic-env
Executable file
8
hooks/containerbuild/doc-compiler/basic-env
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo 'RUN mkdir -p /dist/public' >> Dockerfile
|
||||||
|
echo 'RUN mkdir -p /dist/private' >> Dockerfile
|
||||||
|
echo 'ENV PUBLIC_OUTPUT=/dist/public' >> Dockerfile
|
||||||
|
echo 'ENV PRIVATE_OUTPUT=/dist/private' >> Dockerfile
|
@ -6,4 +6,3 @@ echo 'RUN apk add --no-cache python3 bash' >> Dockerfile
|
|||||||
echo 'ENTRYPOINT [""]' >> 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 '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 'ENV NODE_PATH=/usr/local/lib/node_modules' >> Dockerfile
|
||||||
echo 'RUN mkdir /dist && mkdir /dist/private && mkdir /dist/public' >> Dockerfile
|
|
||||||
|
@ -6,6 +6,7 @@ default_image=marpteam/marp-cli:latest
|
|||||||
# Configuration de l’étape de pré-construction du conteneur
|
# Configuration de l’étape de pré-construction du conteneur
|
||||||
[containerbuild]
|
[containerbuild]
|
||||||
hooks=
|
hooks=
|
||||||
|
containerbuild/doc-compiler/basic-env,
|
||||||
containerbuild/marp-compiler/add-packages,
|
containerbuild/marp-compiler/add-packages,
|
||||||
containerbuild/marp-compiler/add-resources,
|
containerbuild/marp-compiler/add-resources,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user