Skip to content

Commit b6963d0

Browse files
committed
Use bash in Docker scripts
Our Docker scripts use Bash-style conditionals that aren't supported by the default Debian shell.
1 parent 1b8ea4b commit b6963d0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ RUN apt-get update && apt-get install -y git dos2unix
1414
WORKDIR /src
1515

1616
COPY . /src
17-
RUN dos2unix /src/scripts/docker-link-repos.sh && sh /src/scripts/docker-link-repos.sh
17+
RUN dos2unix /src/scripts/docker-link-repos.sh && bash /src/scripts/docker-link-repos.sh
1818
RUN yarn --network-timeout=100000 install
1919
RUN yarn build
2020

2121
# Copy the config now so that we don't create another layer in the app image
2222
RUN cp /src/config.sample.json /src/webapp/config.json
2323

2424
# Ensure we populate the version file
25-
RUN dos2unix /src/scripts/docker-write-version.sh && sh /src/scripts/docker-write-version.sh
25+
RUN dos2unix /src/scripts/docker-write-version.sh && bash /src/scripts/docker-write-version.sh
2626

2727

2828
# App

scripts/docker-link-repos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -ex
44

scripts/docker-write-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -ex
44

0 commit comments

Comments
 (0)