Skip to content

Commit

Permalink
hotfix: fix end of line in base image Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed May 24, 2023
1 parent d8da323 commit 92b961b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SHELL ["/bin/bash", "-ol", "pipefail", "-c"]
RUN set -o pipefail && curl -L https://nixos.org/nix/install | bash \
&& /nix/var/nix/profiles/default/bin/nix-channel --remove nixpkgs \
&& /nix/var/nix/profiles/default/bin/nix-collect-garbage --delete-old \
&& printf 'if [ -d $HOME/.nix-profile/etc/profile.d ]; then\n for i in $HOME/.nix-profile/etc/profile.d/*.sh; do\n if [ -r $i ]; then\n . $i\n fi\n done\n fi\n' >> /root/.profile
&& printf 'if [ -d $HOME/.nix-profile/etc/profile.d ]; then\n for i in $HOME/.nix-profile/etc/profile.d/*.sh; do\n if [ -r $i ]; then\n . $i\n fi\n done\n fi\n' >> /root/.profile \
&& printf 'PATH=$NIXPACKS_PATH:$PATH' >> /root/.profile

ENV \
Expand Down
2 changes: 1 addition & 1 deletion base/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SHELL ["/bin/bash", "-ol", "pipefail", "-c"]
RUN set -o pipefail && curl -L https://nixos.org/nix/install | bash \
&& /nix/var/nix/profiles/default/bin/nix-channel --remove nixpkgs \
&& /nix/var/nix/profiles/default/bin/nix-collect-garbage --delete-old \
&& printf 'if [ -d $HOME/.nix-profile/etc/profile.d ]; then\n for i in $HOME/.nix-profile/etc/profile.d/*.sh; do\n if [ -r $i ]; then\n . $i\n fi\n done\n fi\n' >> /root/.profile
&& printf 'if [ -d $HOME/.nix-profile/etc/profile.d ]; then\n for i in $HOME/.nix-profile/etc/profile.d/*.sh; do\n if [ -r $i ]; then\n . $i\n fi\n done\n fi\n' >> /root/.profile \
&& printf 'PATH=$NIXPACKS_PATH:$PATH' >> /root/.profile

ENV \
Expand Down

0 comments on commit 92b961b

Please sign in to comment.