You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
913B

  1. FROM ubuntu:24.04
  2. ENV LANG C.UTF-8
  3. ARG JOBS
  4. # Create unprivileged user to build toolchains and plugins
  5. RUN useradd --non-unique --create-home --uid 1000 --gid 1000 --shell /bin/bash build
  6. # Install make to run make
  7. ENV DEBIAN_FRONTEND=noninteractive
  8. RUN apt-get update && apt-get install -y --no-install-recommends make
  9. # Create toolchain directory
  10. USER build
  11. RUN mkdir -p /home/build/rack-plugin-toolchain
  12. WORKDIR /home/build/rack-plugin-toolchain
  13. COPY Makefile /home/build/rack-plugin-toolchain/
  14. # Install dependencies for building toolchains and plugins
  15. USER root
  16. RUN make dep-ubuntu
  17. # Clean up files to free up space
  18. RUN rm -rf /var/lib/apt/lists/*
  19. USER build
  20. COPY MacOSX11.1.sdk.tar.* /home/build/rack-plugin-toolchain/
  21. # Build toolchains
  22. RUN JOBS=$JOBS make toolchain-mac
  23. RUN JOBS=$JOBS make toolchain-win
  24. RUN JOBS=$JOBS make toolchain-lin
  25. RUN JOBS=$JOBS make cppcheck
  26. RUN rm MacOSX11.1.sdk.tar.*