Skip to content

Commit

Permalink
fix dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 23, 2024
1 parent 037d1df commit 2b63bdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .docker/bloop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ RUN curl -fL "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linu
RUN cs setup -y
RUN cs install bloop --only-prebuilt=true

ENV PATH="$PATH:/root/.local/share/coursier/bin"
ENV PATH="/root/.local/share/coursier/bin:$PATH:"
RUN bloop

RUN mkdir -p ~/.config/elvish \
&& echo "set paths = [ /carapace-bin/cmd/carapace \$@paths ]\neval (carapace _carapace|slurp)" > ~/.config/elvish/rc.elv
ENV PATH="/carapace-bin/cmd/carapace:$PATH:"

ENTRYPOINT [ "elvish" ]
5 changes: 2 additions & 3 deletions .docker/nix/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ RUN pacman -Sy --noconfirm nix
RUN pacman -Sy --noconfirm elvish

RUN mkdir -p ~/.config/elvish \
&& echo -e "set paths = [ /carapace-bin/cmd/carapace \$@paths ]\neval (carapace _carapace|slurp)" > ~/.config/elvish/rc.elv
RUN export PATH="/carapace-bin/cmd/carapace:$PATH"
&& echo -e "set paths = [ /carapace-bin/cmd/carapace \$@paths ]\neval (carapace _carapace|slurp)" > ~/.config/elvish/rc.elv
ENV PATH="/carapace-bin/cmd/carapace:$PATH:"

RUN mkdir -p ~/.config/nix \
&& echo -e "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf


CMD ["elvish"]

0 comments on commit 2b63bdb

Please sign in to comment.