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 authored and Robin Schneider committed 2019-12-31 16:32:59 +01:00
1 parent 47a5a4e1fc
commit 7a0bb18dcf
13 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ ARG DB=sqlite
RUN rustup set profile minimal
# 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
+1 -1
View File
@@ -33,7 +33,7 @@ RUN rustup set profile minimal
ENV USER "root"
# 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