From 7126eeb491b0ce52b05162673e9d2f96e4f78f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 15 Mar 2024 22:09:08 +0100 Subject: [PATCH] Use debug info in release everywhere --- Cargo.toml | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 86cd1c5..be3b0e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,3 +68,6 @@ migration = { path = "database/migration" } [dev-dependencies] insta = "1.26" derive_builder = "0.20.0" + +[profile.release] +debug = 1 diff --git a/Dockerfile b/Dockerfile index c5f85dc..d6b5fcb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ COPY Cargo.lock . COPY src src COPY database database -RUN CARGO_PROFILE_RELEASE_DEBUG=1 cargo build --release +RUN cargo build --release FROM ubuntu:20.04 as runtime