use && instead of ; to chain sh commands

this makes next command execute only if the prior one is successful, otherwise all commands will execute
This commit is contained in:
Marko Kaznovac
2021-02-23 13:24:12 +01:00
committed by GitHub
parent 56377ab697
commit 1600b8084c
+3 -3
View File
@@ -15,9 +15,9 @@
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
},
"dockerfile": [
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
"\tapk del .pgsql-deps"
],
"docker-compose": {