Skip to content

Commit

Permalink
[FIX] docker workaround: use bsdtar instead of tar due to overlayfs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuman committed Feb 14, 2019
1 parent 6aba59f commit 9c1e261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y \
mysql-client default-libmysqlclient-dev \
postgresql-client libpq-dev \
sqlite3 \
bsdtar \
--no-install-recommends && rm -rf /var/lib/apt/lists/*

# Installing node / npm in Debian (following official nodejs Dockerfile https://github.com/nodejs/docker-node):
Expand All @@ -31,7 +32,7 @@ RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-x64.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 \
&& bsdtar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 \
&& rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

Expand Down

0 comments on commit 9c1e261

Please sign in to comment.