You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
812 B
29 lines
812 B
FROM docker.io/library/debian:latest
|
|
CMD [ "/sbin/init" ]
|
|
ENTRYPOINT [ "/sbin/init" ]
|
|
|
|
# set default working directory as root for child images
|
|
WORKDIR /root/
|
|
ONBUILD WORKDIR /root/
|
|
|
|
# set bash as the default shell for executing commands
|
|
# inside Containerfiles for child images
|
|
ONBUILD SHELL ["/bin/bash", "-c"]
|
|
|
|
# tell bash to read /etc/environment when being run
|
|
# non-interactively for child images
|
|
ONBUILD ENV BASH_ENV=/etc/environment
|
|
|
|
# Install packages
|
|
RUN apt update -y && \
|
|
apt upgrade -y && \
|
|
apt install -y init sudo wget nano less man-db unzip rsync procps software-properties-common && \
|
|
apt autoremove -y --purge && \
|
|
apt clean -y
|
|
|
|
# Set configuration
|
|
COPY assets/nanorc /etc/nanorc
|
|
COPY assets/bash.bashrc /etc/bash.bashrc
|
|
|
|
# copy custom scripts
|
|
COPY assets/bin/ /usr/local/bin/
|
|
|