Trying to install dnvm within a dockerfile, getting syntax error
alberttwong opened this issue · 0 comments
alberttwong commented
I'm trying to create a docker image of aspnet running on centos 7 instead of the OS that comes in "FROM microsoft/aspnet:latest".
Here's a piece of my dockerfile.
RUN yum install -y unzip && \
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh && \
yum clean all
I run docker build -t aspnet-centos7 .
and the result is
Installed:
unzip.x86_64 0:6.0-15.el7
Complete!
Downloading dnvm as script to '/root/.dnx/dnvm'
Appending source string to /root/.bash_profile
Type 'source /root/.dnx/dnvm/dnvm.sh' to start using dnvm
/root/.dnx/dnvm/dnvm.sh: line 629: syntax error near unexpected token `<'
/root/.dnx/dnvm/dnvm.sh: line 629: ` read versionOrAlias downloadUrl < <(__dnvm_find_latest "$runtime" "$arch" "$os")'
The command '/bin/sh -c yum install -y unzip && curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh && yum clean all' returned a non-zero code: 2