Browse Source

fix: cargo really is ignoring PROFILE venv

dev
meeg_leeto 3 weeks ago
parent
commit
464965ae33
  1. 8
      Dockerfile

8
Dockerfile

@ -10,13 +10,17 @@ COPY ./Cargo.toml /lonk/Cargo.toml @@ -10,13 +10,17 @@ COPY ./Cargo.toml /lonk/Cargo.toml
ARG PROFILE
RUN cargo build
RUN [ "${PROFILE}" = "debug" ] \
&& cargo build \
|| cargo build --release
RUN rm src/*.rs
# Compile the source
COPY ./src ./src
RUN rm -f ./target/${PROFILE:-release}/deps/lonk*
RUN cargo build
RUN [ "${PROFILE}" = "debug" ] \
&& cargo build \
|| cargo build --release
# Execution container
FROM rust:slim

Loading…
Cancel
Save