crystal-builder/docker/Dockerfile.phase1
2023-10-27 09:01:37 +02:00

31 lines
914 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 youve installed everything correctly.
## 7. Use bin/crystal to run your crystal files.