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
894B

  1. FROM ubuntu:20.04
  2. ENV LANG C.UTF-8
  3. # Create unprivileged user to build toolchains and plugins
  4. RUN groupadd -g 1000 build
  5. RUN useradd --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 MacOSX10.13.sdk.tar.* /home/build/rack-plugin-toolchain/
  21. # Build toolchains
  22. RUN make toolchain-mac
  23. RUN make toolchain-win
  24. RUN make toolchain-lin
  25. # Install Rack SDK
  26. RUN make rack-sdk
  27. RUN rm MacOSX10.13.sdk.tar.*