mirror of
https://github.com/pinry/pinry.git
synced 2026-02-24 15:21:02 +01:00
Feature: Exit after being failed to build docker image
This commit is contained in:
committed by
Isaac Bythewood
parent
0aa0f64904
commit
8e8b185acf
@@ -42,7 +42,7 @@ RUN cd /srv/www/pinry \
|
||||
COPY . /srv/www/pinry/
|
||||
|
||||
# config nodejs and build frontend
|
||||
RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
|
||||
RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n || exit
|
||||
RUN bash n 10
|
||||
RUN npm -g install yarn
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ if [ "${ALLOW_NEW_REGISTRATIONS}" = "" ]; then
|
||||
fi
|
||||
|
||||
if [[ "$(docker images -q pinry/pinry 2> /dev/null)" == "" ]]; then
|
||||
echo "No docker image found, building..." && "${script_dir}/build_docker.sh"
|
||||
echo "No docker image found, building..." && "${script_dir}/build_docker.sh" || echo "Failed to build docker image..." && exit
|
||||
fi
|
||||
|
||||
echo "=================================================================================="
|
||||
|
||||
Reference in New Issue
Block a user