@ -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*
# Execution container
FROM rust:slim