From bf2bd519eba059b37eed26bbd7fd56dfc8919985 Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 17 Jun 2020 01:04:41 +0200 Subject: [PATCH] Switch to official crystallang alpine image (#1247) * Switch to official crystal-lang alpine image --- docker/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 505b8d88..31760d71 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,5 @@ -FROM alpine:edge AS builder -RUN apk add --no-cache curl crystal shards libc-dev \ - yaml-dev libxml2-dev sqlite-dev zlib-dev openssl-dev \ - yaml-static sqlite-static zlib-static openssl-libs-static +FROM crystallang/crystal:0.35.0-alpine AS builder +RUN apk add --no-cache curl sqlite-static WORKDIR /invidious COPY ./shard.yml ./shard.yml RUN shards update && shards install && \ @@ -16,7 +14,7 @@ COPY ./src/ ./src/ # See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION. COPY ./.git/ ./.git/ RUN crystal build ./src/invidious.cr \ - --static --warnings all --error-on-warnings \ + --static --warnings all \ --link-flags "-lxml2 -llzma" FROM alpine:latest