commit e757129aed56eea8ef8934386b41af46d46f467c Author: Shihaam Abdul Rahman Date: Sun Mar 19 08:50:24 2023 +0500 build diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9ac996 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM debian:11-slim + +# Set build shell to bash, default has has some issues sometimes +SHELL ["/bin/bash", "-c"] +RUN apt update && apt upgrade -y + +# Language setup and Initial repo update +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 +RUN apt install git ca-certificates lsb-release apt-transport-https wget curl nano vim locales -y \ + && apt auto-remove -y \ + && apt clean -y +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ + && locale-gen + +RUN apt install doas neofetch -y + +# create user +ARG USER=shihaam +RUN echo permit keepenv nopass :$USER > /etc/doas.conf +RUN adduser --disabled-password --gecos "" $USER +USER $USER + + + +CMD /bin/bash -c 'while true; do sleep 1; done' diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c4d22b8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3.5' +services: +######################### + debian11: + build: . + image: git.shihaam.dev/dockerfiles/debain11 + environment: + - DISPLAY=$DISPLAY + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix