Remove some duplicate code in Dockerfile with the help of some variables

This commit is contained in:
Daniel García committed 2020-10-11 17:27:15 +02:00
1 parent 34ee326ce9
commit 257b143df1
4 files changed
+46 -126

No files matched your search

-1
View File
@@ -32,7 +32,6 @@ RUN rustup set profile minimal
ENV USER "root"
ENV RUSTFLAGS='-C link-arg=-s'
# Creates a dummy project used to grab dependencies
RUN USER=root cargo new --bin /app
WORKDIR /app