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.

36 lines
897B

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