Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Trying to install dnvm within a dockerfile, getting syntax error #516

Closed
alberttwong opened this issue Apr 12, 2016 · 0 comments
Closed
Milestone

Comments

@alberttwong
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants