fix: cargo really is ignoring PROFILE venv
This commit is contained in:
parent
05c3072037
commit
464965ae33
|
@ -10,13 +10,17 @@ COPY ./Cargo.toml /lonk/Cargo.toml
|
||||||
|
|
||||||
ARG PROFILE
|
ARG PROFILE
|
||||||
|
|
||||||
RUN cargo build
|
RUN [ "${PROFILE}" = "debug" ] \
|
||||||
|
&& cargo build \
|
||||||
|
|| cargo build --release
|
||||||
RUN rm src/*.rs
|
RUN rm src/*.rs
|
||||||
|
|
||||||
# Compile the source
|
# Compile the source
|
||||||
COPY ./src ./src
|
COPY ./src ./src
|
||||||
RUN rm -f ./target/${PROFILE:-release}/deps/lonk*
|
RUN rm -f ./target/${PROFILE:-release}/deps/lonk*
|
||||||
RUN cargo build
|
RUN [ "${PROFILE}" = "debug" ] \
|
||||||
|
&& cargo build \
|
||||||
|
|| cargo build --release
|
||||||
|
|
||||||
# Execution container
|
# Execution container
|
||||||
FROM rust:slim
|
FROM rust:slim
|
||||||
|
|
Loading…
Reference in New Issue