Skip to content

Commit

Permalink
Add config-overrides.js to Dockerfile and remove docs folder copy log…
Browse files Browse the repository at this point in the history
…ic from entrypoint.sh
  • Loading branch information
cedricdcc committed Feb 5, 2025
1 parent d87c92f commit 2a5595e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ COPY _config.yml /_config.yml
COPY package.json /package.json
COPY entrypoint.sh /entrypoint.sh
COPY requirements.txt /requirements.txt
COPY config-overrides.js /config-overrides.js

#print(the env variable inputs.repo_path passed from the actins.yml file)
RUN echo $repo_path
#print( the env variable inputs.base_uri passed from the actins.yml file)
Expand Down
13 changes: 0 additions & 13 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,6 @@ then
cp ./github/workspace/data/vocabularies.json ./src/data/vocabularies.json
cp ./github/workspace/data/ontologies.json ./src/data/ontologies.json

#check if there is a ./docs folder in ./github/workspace, if so copy it over to ./src/docs recursively with force overwrite
echo "checking if there is a docs folder in ./github/workspace"
if [ -d ./github/workspace/data/docs ];
then
echo "docs folder is present"
echo "copying the docs folder over to ./src/data/docs"
cp -r ./github/workspace/data/docs ./src/data
echo "copying the docs folder over to ./public/data"
cp -r ./github/workspace/data/docs ./public/data
else
echo "docs folder is not present"
fi

else
echo "one or more files of the data folder are missing"
exit 1
Expand Down

0 comments on commit 2a5595e

Please sign in to comment.