build
This commit is contained in:
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'
|
||||
Reference in New Issue
Block a user