Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docker/debian11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM mipsdkcontainer.azurecr.io/debian11

ENV DEBIAN_FRONTEND noninteractive

# Package installation
RUN apt-get update

## Common packages for linux build environment
RUN apt install -y clang python pkg-config git curl bzip2 unzip make wget cmake sudo

RUN adduser --disabled-password --gecos '' docker
RUN adduser docker sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
## RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
## USER docker

# this is where I was running into problems with the other approaches
RUN sudo apt-get update

CMD /bin/bash

# ENTRYPOINT bash
6 changes: 0 additions & 6 deletions docker/debian9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ FROM mipsdkcontainer.azurecr.io/debian9

ENV DEBIAN_FRONTEND noninteractive

# Package installation
RUN apt-get update

## Common packages for linux build environment
RUN apt install -y clang python pkg-config git curl bzip2 unzip make wget cmake sudo

Expand All @@ -14,9 +11,6 @@ RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
## RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
## USER docker

# this is where I was running into problems with the other approaches
RUN sudo apt-get update

CMD /bin/bash

# ENTRYPOINT bash
22 changes: 22 additions & 0 deletions docker/ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM mipsdkcontainer.azurecr.io/ubuntu2204

ENV DEBIAN_FRONTEND noninteractive

# Package installation
RUN apt-get update

## Common packages for linux build environment
RUN apt install -y clang python2 pkg-config git curl bzip2 unzip make wget cmake sudo

RUN adduser --disabled-password --gecos '' docker
RUN adduser docker sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
## RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
## USER docker

# this is where I was running into problems with the other approaches
RUN sudo apt-get update

CMD /bin/bash

# ENTRYPOINT bash