Add env variable for which branch to use. Move CPU and RAM requirements to env so that only 1 docker-compose.yml
example is needed.
This commit is contained in:
@@ -20,7 +20,7 @@ CMD cd /var/www/api && \
|
||||
ls -l website/files; rm -v website/files; sleep 0 && \
|
||||
echo "Dockerfile: Clone the website's Git repo..." && \
|
||||
rm -rfv website && \
|
||||
git clone https://git.hyperling.com/me/nodejs-website website && \
|
||||
git clone https://git.hyperling.com/me/nodejs-website $BRANCH website && \
|
||||
echo "Dockerfile: Remove dummy files and replace with symlink..." && \
|
||||
rm -rfv website/files && \
|
||||
cd website && \
|
||||
|
Reference in New Issue
Block a user