Update Dockerfile to use shard.lock

This commit is contained in:
saltycrys 2020-12-09 02:54:02 +01:00
parent fa172ab4ad
commit bafa1a48d5

View File

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