Use custom Dockerfile for GitHub Codespaces

network
probonopd 4 days ago
parent 84525eb9e4
commit 9142a8ea1a
  1. 12
      src/.devcontainer/Dockerfile
  2. 3
      src/.devcontainer/devcontainer.json

@ -0,0 +1,12 @@
FROM mcr.microsoft.com/devcontainers/universal:linux
RUN mkdir -p /opt/gcc && \
cd /opt/gcc && \
wget -q https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz && \
tar xf gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz && \
rm gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz && \
wget -q https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-arm-none-eabi.tar.xz && \
tar xf gcc-arm-10.3-2021.07-x86_64-arm-none-eabi.tar.xz && \
rm gcc-arm-10.3-2021.07-x86_64-arm-none-eabi.tar.xz
ENV PATH=/opt/gcc/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin:/opt/gcc/gcc-arm-10.3-2021.07-x86_64-arm-none-eabi/bin:$PATH

@ -0,0 +1,3 @@
{
"build": { "dockerfile": "Dockerfile" },
}
Loading…
Cancel
Save