Utiliser une variable d’environnement

This commit is contained in:
Benjamin Bohard 2022-08-11 10:25:10 +02:00
parent ca586bd600
commit 4ec7fcff67
4 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export DESTDIR=/dist cd /src
pushd /src
./build ./build
popd

View 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

View File

@ -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

View File

@ -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,