This commit is contained in:
Shihaam Abdul Rahman 2023-03-19 08:50:24 +05:00
commit e757129aed
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 37 additions and 0 deletions

27
Dockerfile Normal file
View File

@ -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'

10
docker-compose.yml Normal file
View File

@ -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