Created
September 10, 2023 03:08
-
-
Save wsdookadr/568d9eaab24b0dde4e6459fc761ce4c5 to your computer and use it in GitHub Desktop.
docker setup template based on slackware image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. /etc/profile | |
slackpkg_unatt(){ | |
slackpkg -batch=on -default_answer=y -orig_backups=off $@ | |
} | |
sbopkg_unatt(){ | |
local pkg=$1 | |
/usr/sbin/sqg -p $pkg | |
yes $'Q\nY\nP\nC' | /usr/sbin/sbopkg -B -i $pkg | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM vbatts/slackware:15.0 | |
LABEL maintainer "Stefan Corneliu Petrea <stefan.petrea@gmail.com>" | |
RUN slackpkg update | |
COPY bashrc /root/.bashrc | |
RUN source ~/.bashrc && slackpkg_unatt install ca-certificates perl rsync lz4 cyrus-sasl curl zstd xxHash nghttp2 brotli gcc make binutils patch | |
RUN update-ca-certificates -f | |
RUN wget -O sbopkg.tgz https://github.com/sbopkg/sbopkg/releases/download/0.38.2/sbopkg-0.38.2-noarch-1_wsr.tgz | |
RUN upgradepkg --install-new sbopkg.tgz | |
RUN mkdir -p /var/lib/sbopkg/queues /var/lib/sbopkg/SBo/15.0 | |
RUN sbopkg -r >/dev/null | |
RUN source ~/.bashrc && slackpkg_unatt install python3 | |
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment