Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Installation fails in popular docker base container buildpack-deps:jessie #63

Open
FelixWeis opened this issue Aug 3, 2016 · 0 comments

Comments

@FelixWeis
Copy link

The issue is that sudo is not available. Should not be necessary since docker user is usually root during the build phase. Simple check if we are root and ommit sudo should work fine.

FROM buildpack-deps:jessie

RUN apt-get update && apt-get install sudo -y \
     && curl -sSf https://static.rust-lang.org/rustup.sh | sh \
     && cargo install ... \
     && SUDO_FORCE_REMOVE=yes apt-get remove sudo -y \
     && rm -rf /var/lib/apt/lists/*

I could save 3 LOC.

@FelixWeis FelixWeis changed the title Installation in a most popular docker container buildpack-deps:jessie fails Installation fails in popular docker base container buildpack-deps:jessie Aug 3, 2016
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

1 participant