forked from elbywan/crystalline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We now need a custom copy of the sources to build, because the main release distribution doesn't have the markd sources or the required LLVM object files. Closes elbywan#29
- Loading branch information
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
FROM crystallang/crystal:1.1.1-alpine | ||
FROM crystallang/crystal:1.2.2-alpine | ||
|
||
WORKDIR /app | ||
|
||
# Add llvm deps. | ||
RUN apk add --update --no-cache --force-overwrite \ | ||
llvm10-dev llvm10-static g++ | ||
llvm10-dev llvm10-static g++ make | ||
|
||
# Build crystalline. | ||
COPY . /app/ | ||
RUN shards build crystalline --no-debug --progress --stats --production --static --release -Dpreview_mt --ignore-crystal-version | ||
|
||
RUN git clone -b 1.2.2 --depth=1 https://github.com/crystal-lang/crystal \ | ||
&& make -C crystal llvm_ext \ | ||
&& CRYSTAL_PATH=crystal/src:lib shards build crystalline \ | ||
--no-debug --progress --stats --production --static --release \ | ||
-Dpreview_mt --ignore-crystal-version \ | ||
&& rm -rf crystal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters