Move things around so the shards layer is cached

This commit is contained in:
Roberto Alsina 2023-06-04 13:16:51 -03:00
parent 3bbafb28c0
commit e17bd4e6aa
1 changed files with 1 additions and 1 deletions

View File

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