Show error traces when building

This commit is contained in:
Roberto Alsina 2023-06-04 15:29:40 -03:00
parent e17bd4e6aa
commit bfe2029b2d

View File

@ -11,7 +11,7 @@ WORKDIR /home/app
COPY function/shard.yml shard.yml
RUN shards install
COPY . .
RUN crystal build main.cr -o handler -p && strip handler && rm -rf /root/.cache
RUN crystal build main.cr -o handler --error-trace -p && rm -rf /root/.cache
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as ship
ARG ADDITIONAL_PACKAGE