Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
more fixes and imporvements for botwayorg/botway:full 🐋 image
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed May 10, 2022
1 parent 5bb71d8 commit c1f093b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 9 additions & 7 deletions docker/full.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,22 @@ ENV GOPATH /go
ENV PATH /go/bin:$PATH
RUN rm "$(curl https://go.dev/VERSION?m=text).linux-amd64.tar.gz"

RUN sudo mkdir -p ${GOPATH}/src ${GOPATH}/bin

### deno ###
RUN curl -fsSL https://deno.land/x/install/install.sh | sh

ENV DENO_INSTALL="$HOME/.deno"

ENV PATH="${DENO_INSTALL}/bin:${PATH}"

### gh ###
RUN wget \
https://github.com/cli/cli/releases/download/$(curl https://get-latest.herokuapp.com/cli/cli)/gh_$(curl https://get-latest.herokuapp.com/cli/cli/no-v)_linux_amd64.tar.gz \
-O gh.tar.gz
RUN tar -xzf gh.tar.gz
RUN sudo mv "gh_$(curl https://get-latest.herokuapp.com/cli/cli/no-v)_linux_amd64/bin/gh" /usr/bin
RUN rm -rf gh*

### rm old ~/.zshrc ###
RUN sudo rm -rf $ZSHRC

COPY ./tools/zshrc $ZSHRC

COPY ./tools/.zshrc .
RUN sudo chown bw $ZSHRC

CMD /bin/bash -c "zsh"
4 changes: 1 addition & 3 deletions docker/tools/zshrc → docker/tools/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ alias n="nano ~/.zshrc"
alias update="sudo apt-get update"
alias upgrade="sudo apt-get upgrade"
alias py="python3"

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
alias go="/usr/local/go/bin/go"

0 comments on commit c1f093b

Please sign in to comment.