Dockerfile 565 B

1234567891011121314151617181920
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. FROM carbon-ubuntu2404-base as carbon-ubuntu2404-github-build
  5. # Clone git repository
  6. RUN git clone https://github.com/carbon-language/carbon-lang
  7. WORKDIR /carbon-lang
  8. # Setup pre-commit
  9. RUN pre-commit install
  10. # Build
  11. RUN bazel build //explorer
  12. FROM carbon-ubuntu2404-github-build
  13. CMD ["bazel", "run", "//explorer", "--", "./explorer/testdata/print/format_only.carbon"]