From bafa1a48d58446721566562674d2f437eb1014be Mon Sep 17 00:00:00 2001 From: saltycrys <73420320+saltycrys@users.noreply.github.com> Date: Wed, 9 Dec 2020 02:54:02 +0100 Subject: [PATCH] Update Dockerfile to use `shard.lock` --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b05f66eb..7d4932fc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,8 @@ FROM crystallang/crystal:0.35.1-alpine AS builder RUN apk add --no-cache curl sqlite-static WORKDIR /invidious COPY ./shard.yml ./shard.yml -RUN shards update && shards install && \ +COPY ./shard.lock ./shard.lock +RUN shards install && \ # TODO: Document build instructions # See https://github.com/omarroth/boringssl-alpine/blob/master/APKBUILD, # https://github.com/omarroth/lsquic-alpine/blob/master/APKBUILD,