Utiliser une variable d’environnement
This commit is contained in:
parent
ca586bd600
commit
4ec7fcff67
|
@ -1,6 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export DESTDIR=/dist
|
||||
pushd /src
|
||||
cd /src
|
||||
./build
|
||||
popd
|
||||
|
|
|
@ -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 '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
|
||||
|
|
|
@ -6,6 +6,7 @@ default_image=marpteam/marp-cli:latest
|
|||
# Configuration de l’étape de pré-construction du conteneur
|
||||
[containerbuild]
|
||||
hooks=
|
||||
containerbuild/doc-compiler/basic-env,
|
||||
containerbuild/marp-compiler/add-packages,
|
||||
containerbuild/marp-compiler/add-resources,
|
||||
|
||||
|
|
Loading…
Reference in New Issue