Skip to content
Snippets Groups Projects
Select Git revision
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • experimental default protected
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2023.2.5-ffs0.1
  • experimental-2025-06-08
  • experimental-2025-06-08-base
  • experimental-2025-06-06
  • experimental-2025-06-06-base
  • experimental-2025-05-27
  • experimental-2025-05-27-base
  • experimental-2025-05-18
  • experimental-2025-05-18-base
  • experimental-2025-05-15
  • experimental-2025-05-15-base
  • experimental-2025-05-13
  • experimental-2025-05-13-base
  • experimental-2025-05-08
  • experimental-2025-05-08-base
  • experimental-2025-05-05
  • experimental-2025-05-05-base
  • experimental-2025-05-02
  • experimental-2025-05-02-base
  • experimental-2025-05-01
40 results

Dockerfile

Blame
    • Matthias Schiffer's avatar
      4ada0c4e
      contrib: Dockerfile: use UID/GID 100 for gluon user · 4ada0c4e
      Matthias Schiffer authored
      To make the container behave the same regardless of the UIDs used
      outside of the container, choose a UID that is unlikely to be used by
      the user mounting their build directory the container. 100 should not
      conflict with common defaults on Linux (min UID 1000) or MacOS X
      (min UID 500). Conveniently, there is already a group "users" at GID
      100, so creating a new group can be avoided.
      contrib: Dockerfile: use UID/GID 100 for gluon user
      Matthias Schiffer authored
      To make the container behave the same regardless of the UIDs used
      outside of the container, choose a UID that is unlikely to be used by
      the user mounting their build directory the container. 100 should not
      conflict with common defaults on Linux (min UID 1000) or MacOS X
      (min UID 500). Conveniently, there is already a group "users" at GID
      100, so creating a new group can be avoided.
    Dockerfile 883 B
    FROM debian:bookworm-slim
    
    ARG DEBIAN_FRONTEND=noninteractive
    RUN apt-get update && apt-get install -y --no-install-recommends \
        ca-certificates \
        file \
        git \
        python3 \
        python3-distutils \
        build-essential \
        gawk \
        unzip \
        libncurses5-dev \
        zlib1g-dev \
        libssl-dev \
        libelf-dev \
        wget \
        rsync \
        time \
        qemu-utils \
        ecdsautils \
        lua-check \
        shellcheck \
        && apt-get clean \
        && rm -rf /var/lib/apt/lists/*
    
    RUN mkdir /tmp/ec &&\
        wget -O /tmp/ec/ec-linux-amd64.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.7.0/ec-linux-amd64.tar.gz &&\
        tar -xvzf /tmp/ec/ec-linux-amd64.tar.gz &&\
        mv bin/ec-linux-amd64 /usr/local/bin/editorconfig-checker &&\
        rm -rf /tmp/ec
    
    RUN useradd -m -d /gluon -u 100 -g 100 gluon
    USER gluon
    
    VOLUME /gluon
    WORKDIR /gluon