build
This commit is contained in:
commit
e757129aed
27
Dockerfile
Normal file
27
Dockerfile
Normal 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
10
docker-compose.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user