Move things around so the shards layer is cached
This commit is contained in:
parent
3bbafb28c0
commit
e17bd4e6aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user