Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-ganbold committed Jul 30, 2019
1 parent 23166fe commit 4ce875a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ FROM python:3.8.0b2-alpine3.10

LABEL maintainer="Rhino Assessment Team <[email protected]>"
LABEL cloudgoat.version="2.0.0"

RUN apk add --update bash bash-completion docker-bash-completion openssh curl

RUN apk add --update bash openssh curl

# Install terraform and aws cli
# Install Terraform and AWS CLI
RUN wget -O terraform.zip https://releases.hashicorp.com/terraform/0.12.3/terraform_0.12.3_linux_amd64.zip \
&& unzip terraform.zip \
&& rm terraform.zip \
Expand All @@ -15,10 +15,15 @@ RUN wget -O terraform.zip https://releases.hashicorp.com/terraform/0.12.3/terraf
# Install CloudGoat
WORKDIR /usr/src/cloudgoat/core/python
COPY ./core/python/requirements.txt ./
RUN pip3 install -r ./requirements.txt \
&& activate-global-python-argcomplete --user
RUN pip3 install -r ./requirements.txt
# && activate-global-python-argcomplete --user
RUN activate-global-python-argcomplete --dest=- > /usr/share/bash-completion/completions/python-argcomplete
RUN echo -e "PS1='\\u@\\h:\\w\\$ '\n\
bind '\";5C\":forward-word'\n\
bind '\";5D\":backward-word'\n\
. /usr/share/bash-completion/bash_completion" > /root/.bashrc

WORKDIR /usr/src/cloudgoat/
COPY ./ ./

ENTRYPOINT ["/bin/sh"]
ENTRYPOINT ["/bin/bash"]

0 comments on commit 4ce875a

Please sign in to comment.