|
|
@ -19,7 +19,7 @@ COPY ./src/ ./src/
|
|
|
|
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
|
|
|
|
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
|
|
|
|
COPY ./.git/ ./.git/
|
|
|
|
COPY ./.git/ ./.git/
|
|
|
|
RUN crystal build ./src/invidious.cr \
|
|
|
|
RUN crystal build ./src/invidious.cr \
|
|
|
|
--release --static --warnings all --error-on-warnings \
|
|
|
|
--static --warnings all --error-on-warnings \
|
|
|
|
# TODO: Remove next line, see https://github.com/crystal-lang/crystal/issues/7946
|
|
|
|
# TODO: Remove next line, see https://github.com/crystal-lang/crystal/issues/7946
|
|
|
|
-Dmusl \
|
|
|
|
-Dmusl \
|
|
|
|
--link-flags "-lxml2 -llzma"
|
|
|
|
--link-flags "-lxml2 -llzma"
|
|
|
|