31 lines
914 B
Text
31 lines
914 B
Text
FROM debian:12
|
||
|
||
WORKDIR /setup
|
||
|
||
## 1. Install the latest crystal release
|
||
## Ref. https://crystal-lang.org/install/
|
||
COPY setup/step1.sh /setup/step1.sh
|
||
RUN sh /setup/step1.sh
|
||
|
||
## 2. Make sure a supported LLVM version is present in the path
|
||
## (When possible, use the latest supported version)
|
||
COPY setup/step2.sh /setup/step2.sh
|
||
RUN sh /setup/step2.sh
|
||
|
||
## 3. Make sure to install all the required libraries. You might also want to read the contributing guide.
|
||
COPY setup/step3.sh /setup/step3.sh
|
||
RUN sh /setup/step3.sh
|
||
|
||
## 4. Clone the repository: git clone https://github.com/crystal-lang/crystal
|
||
COPY setup/step4.sh /setup/step4.sh
|
||
RUN sh /setup/step4.sh
|
||
|
||
## 5. Run make to build your own version of the compiler.
|
||
COPY setup/step5.sh /setup/step5.sh
|
||
|
||
## 6. Run make std_spec compiler_spec to ensure all specs pass, and you’ve installed everything correctly.
|
||
|
||
## 7. Use bin/crystal to run your crystal files.
|
||
|
||
|
||
|