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

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

@FelixWeis

Description

@FelixWeis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions