Commit a26e49fd authored by Jannik Hoelling's avatar Jannik Hoelling
Browse files

add baseimage archlinux and debian

parent 29dc4419
FROM archlinux:base-devel
RUN pacman-key --init
RUN pacman-key --populate archlinux
RUN pacman -Syu --noconfirm
RUN pacman -S git --noconfirm
#create build user that has root access because archlinux doesn't allow makepkg to be run as root
RUN useradd --no-create-home --shell=/bin/false build && usermod -L build
RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
COPY ./certs/ca.crt /etc/ssl/certs/
COPY ./certs /etc/ssl/cert-data
COPY client.sh /client.sh
RUN mkdir /src
WORKDIR /src/
RUN chown build /src
\ No newline at end of file
ARG VERSION=bullseye
FROM debian:${VERSION}
RUN apt-get update && apt-get install -y \
git \
cmake \
make \
wget \
bash \
autoconf \
automake \
coreutils \
patch \
gperf \
pkgconf \
libtool \
g++ \
gcc \
perl \
python3 \
golang
COPY ./certs/ca.crt /etc/ssl/certs/
COPY ./certs /etc/ssl/cert-data
COPY client.sh /client.sh
RUN mkdir /src
RUN mkdir /build
WORKDIR /src/
docker build -t tls-baseimage .
docker build -t tls-baseimagedebian -f Dockerfile-debian .
docker build -t tls-baseimage-archlinux -f Dockerfile-archlinux .
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment