From e17bd4e6aaf2d6d3841793ee9a659e0b0ecac199 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sun, 4 Jun 2023 13:16:51 -0300 Subject: [PATCH] Move things around so the shards layer is cached --- template/crystal-http/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/crystal-http/Dockerfile b/template/crystal-http/Dockerfile index b322df7..3083090 100644 --- a/template/crystal-http/Dockerfile +++ b/template/crystal-http/Dockerfile @@ -8,9 +8,9 @@ RUN apk update && apk upgrade && apk add crystal shards openssl-dev ${ADDITIONAL WORKDIR /home/app -COPY . . COPY function/shard.yml shard.yml RUN shards install +COPY . . RUN crystal build main.cr -o handler -p && strip handler && rm -rf /root/.cache FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as ship