firebase / firebase/firebase-tools
cannot install via `firebase.tools | bash` on docker (alpine)
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 84
Description
### [REQUIRED] Environment info
Trying to build a Dockerfile:
```Dockerfile
FROM node:13-alpine
RUN apk update && apk add bash git curl sudo
# patch sudo https://unix.stackexchange.com/a/578950
RUN echo "Set disable_coredump false" >> /etc/sudo.conf
RUN curl -sL firebase.tools| bash
```
**Platform:** Linux
### [REQUIRED] Test case
```sh
$ docker build .
[+] Building 23.7s (7/7) FINISHED
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 200B 0.0s
=> [internal] load metadata for docker.io/library/node:13-alpine 0.0s
=> [1/4] FROM docker.io/library/node:13-alpine 0.0s
=> CACHED [2/4] RUN apk update && apk add bash git curl sudo 0.0s
=> CACHED [3/4] RUN echo "Set disable_coredump false" >> /etc/sudo.conf 0.0s
=> ERROR [4/4] RUN curl -sL firebase.tools| bash 23.6s
------
> [4/4] RUN curl -sL firebase.tools| bash:
#7 2.771 -- Checking for existing firebase-tools on PATH...
#7 2.779 -- Checking your machine type...
#7 2.786 -- Downloading binary from https://firebase.tools/bin/linux/latest
######################################################################## 100.0%#=#=-# #
######################################################################## 100.0% -#O#- # #
######################################################################## 100.0% -#O=# # #
######################################################################## 100.0%
#7 23.47 -- Setting permissions on binary...
#7 23.47 bash: line 255: /usr/local/bin/firebase: No such file or directory
#7 23.48 bash: line 262: e: command not found
#7 23.48 Something went wrong, firebase has not been installed.
#7 23.48 Please file a bug with your system information on Github.
#7 23.48 https://github.com/firebase/firebase-tools/
#7 23.48 -- All done!
------
failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c curl -sL firebase.tools| bash]: runc did not terminate sucessfully
```
### [REQUIRED] Steps to reproduce
1. run `docker build .`
### [REQUIRED] Expected behavior
Command to finish successfully
### [REQUIRED] Actual behavior
Ends with error: `line 255: /usr/local/bin/firebase: No such file or director`
Contributor guide
Assessment
This issue has not been assessed yet.