build files for making podman containers
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.
 
 

37 lines
1.1 KiB

#FROM debian:stable
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
# We can't use timedatectl because systemd isn't available
# during the build process, so we have to set the timezone manually
ENV TZ=US/Eastern
RUN rm /etc/localtime && \
ln -s /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone
# 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/