Browse Source

compile-time microoptimization

master
Archivist 5 years ago
parent
commit
12de0e332e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Dockerfile

+ 1
- 1
Dockerfile View File

@ -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

Loading…
Cancel
Save