diff --git a/Dockerfile b/Dockerfile index 33c876302eed843839cb30a2ecbb2a160709e9e1..f9f741b986a8fe4440b7e819679dd5a08643c653 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,12 @@ -FROM library/ubuntu:17.10 +FROM rust MAINTAINER elois <elois@ifee.fr> - -ENV DEBIAN_FRONTEND noninteractive -ENV CUSTOM_VAR_ENV value +LABEL version="0.1" +LABEL description="CI for DURS project (Divende Universel RuSt)" RUN apt-get update && \ apt-get install -y build-essential curl python-pip pkg-config libssl-dev sudo tar zip && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -RUN useradd --create-home -s /bin/bash user -WORKDIR /home/user -ENV HOME /home/user -ENV USER user - -# External scripts -ADD . /home/user -RUN chmod +x install_rustup.sh - -# Install Rust & Cargo -RUN ./install_rustup.sh - -# Now act as `user` -USER user \ No newline at end of file +# Install fmt and clippy +RUN rustup component add rustfmt-preview +RUN rustup component add clippy \ No newline at end of file