Use bash in Docker scripts

Our Docker scripts use Bash-style conditionals that aren't supported by the
default Debian shell.
pull/12001/head
J. Ryan Stinnett 2020-01-22 17:44:18 +00:00
parent 1b8ea4b6d7
commit b6963d0e5c
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y git dos2unix
WORKDIR /src WORKDIR /src
COPY . /src COPY . /src
RUN dos2unix /src/scripts/docker-link-repos.sh && sh /src/scripts/docker-link-repos.sh RUN dos2unix /src/scripts/docker-link-repos.sh && bash /src/scripts/docker-link-repos.sh
RUN yarn --network-timeout=100000 install RUN yarn --network-timeout=100000 install
RUN yarn build RUN yarn build
@ -22,7 +22,7 @@ RUN yarn build
RUN cp /src/config.sample.json /src/webapp/config.json RUN cp /src/config.sample.json /src/webapp/config.json
# Ensure we populate the version file # Ensure we populate the version file
RUN dos2unix /src/scripts/docker-write-version.sh && sh /src/scripts/docker-write-version.sh RUN dos2unix /src/scripts/docker-write-version.sh && bash /src/scripts/docker-write-version.sh
# App # App

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -ex set -ex

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -ex set -ex