From 12de0e332ee522295d163535bf36453d6731d590 Mon Sep 17 00:00:00 2001 From: Archivist Date: Sat, 14 Jul 2018 19:08:46 +0200 Subject: [PATCH] compile-time microoptimization --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fb2d189..90ca8e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ COPY . /opt/app/ RUN cd /opt/app && \ shards -RUN cd /opt/app/ && crystal build --release src/sales_backend.cr +RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/sales_backend.cr CMD /opt/app/sales_backend \ No newline at end of file