Make cargo new independent of workdir to be exact

The muslrust images seem to have a workdir of /volume as opposed to / in the
others so doing cargo new like this would create the folder in /volume/app.
This commit is contained in:
Daniel García
2019-12-31 15:31:01 +01:00
committed by Robin Schneider
parent 47a5a4e1fc
commit 7a0bb18dcf
13 changed files with 13 additions and 13 deletions

View File

@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Creates a dummy project used to grab dependencies
RUN USER=root cargo new --bin app
RUN USER=root cargo new --bin /app
WORKDIR /app
# Copies over *only* your manifests and build files