Skip to content

Commit

Permalink
test Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mikysal78 committed Apr 4, 2024
1 parent 0630b8e commit 5ab4519
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
FROM debian:bookworm
FROM debian:buster

RUN apt-get update &&\
apt-get install -y \
sudo ccache time git-core subversion build-essential g++ bash make \
libssl-dev patch libncurses5 libncurses5-dev zlib1g-dev gawk flex \
gettext wget unzip xz-utils python3 python3-distutils-extra rsync curl \
gcc-multilib libsnmp-dev liblzma-dev libpam0g-dev cpio rsync \
clang python3-distutils file wget automake && \

libssl-dev patch libncurses5 libncurses5-dev zlib1g-dev gawk \
flex gettext wget unzip xz-utils python python-distutils-extra \
python3 python3-distutils-extra rsync curl libsnmp-dev liblzma-dev \
libpam0g-dev cpio rsync && \
wget https://github.com/cli/cli/releases/download/v2.39.2/gh_2.39.2_linux_amd64.deb && \
apt-get install -f ./gh_2.39.2_linux_amd64.deb && \
apt-get clean && \
useradd -m user && \
echo 'user ALL=NOPASSWD: ALL' > /etc/sudoers.d/user

ADD https://github.com/github-release/github-release/releases/download/v0.9.0/linux-amd64-github-release.bz2 linux-amd64-github-release.bz2
RUN bzip2 -d linux-amd64-github-release.bz2 && \
cp linux-amd64-github-release /usr/local/bin/github-release && \
chmod +x /usr/local/bin/github-release

USER user
WORKDIR /home/user

# set dummy git config
RUN git config --global user.name "user" && git config --global user.email "user@example.com"


0 comments on commit 5ab4519

Please sign in to comment.