Skip to content

Instantly share code, notes, and snippets.

@thomashartm
Last active May 9, 2023 08:38
Show Gist options
  • Save thomashartm/4aaf0c2b6d1562b9e03c49ab39969886 to your computer and use it in GitHub Desktop.
Save thomashartm/4aaf0c2b6d1562b9e03c49ab39969886 to your computer and use it in GitHub Desktop.
Dockerfile providing golang and python 3 inside a kali linux container
FROM kalilinux/kali-rolling
########
# The purpose of the this container is quickly hacking some security testing scripts and tools.
# Put the file into your local dev project, add the required tools, build the image and run it.
# Mount your local folder for development.
# Howto:
#
# docker build --no-cache -t <image-name> .
#
# docker run --rm -it -v $(pwd):/usr/src <image-name>
#
########
# OS update
RUN apt-get update && apt-get -yu dist-upgrade -y
# Install golang
RUN apt-get install -y golang-go
# Python env and tools installation
RUN apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip \
&& apt-get install -y \
wget \
nmap \
sslyze \
nikto \
theharvester \
whois \
dnsmap
ENV GOROOT=/usr/lib/go
ENV GOPATH=$HOME/go
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
RUN mkdir -p /usr/src
WORKDIR /usr/src
# enable if needed
#COPY requirements.txt .
#RUN pip install -r requirements.txt
VOLUME /usr/src
@gourab337
Copy link

Unable to locate package golang-go

Error code: executor failed running [/bin/sh -c apt-get install -y golang-go]: exit code: 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment