I need to use a standard Alpine docker image and install a specific version of Node and NPM. Heres is my attempt so far: FROM alpine:3.17.2 RUN apk update RUN apk upgrade RUN apk add bash git helm
Share, comment, bookmark or report
unable to add certificates to alpine linux container. 21. curl certificate fail in docker container. 14.
Share, comment, bookmark or report
Most of the world Linux software is linked against glibc, the GNU libc library (libc provides the standard C library and POSIX API). Most Linux distributions are based on glibc. OTOH, Alpine Linux is based on the musl libc library, which is a minimal implementation and
Share, comment, bookmark or report
The default shell in Alpine Linux is ash. Ash will only read the /etc/profile and ~/.profile files if it is started as a login shell sh -l. To force Ash to source the /etc/profile or any other script you want upon its invocation as a non login shell, you need to setup an environment variable called ENV before launching Ash.
Share, comment, bookmark or report
For anyone coming here using alpine linux, or specially through WSL, just add .profile file into the root directory. apk update apk add nano cd ~ nano .profile --- alias test='I work' source ~/.profile test >>> I work
Share, comment, bookmark or report
I have a directory containing only two files, Dockerfile and sayhello.sh: . ├── Dockerfile └── sayhello.sh The Dockerfile reads FROM alpine COPY sayhello.sh sayhello.sh CMD ["sayhello.sh"...
Share, comment, bookmark or report
0. The best practice is to not install glibc on Alpine Linux. It uses musl libc instead, a lightweight, fast, simple and standards-conform C library (i.e. everything that glibc is not). Instead of installing glibc on Alpine, build and/or package your dependent software packages and libraries for Alpine.
Share, comment, bookmark or report
You will need to add the following commands to get bash: RUN apk update && apk add bash. If you're using Alpine 3.3+ then you can just do: RUN apk add --no-cache bash. To keep the docker image size small. (Thanks to comment from @sprkysnrky) If you just want to connect to the container and don't need bash, you can use: docker run --rm -i -t ...
Share, comment, bookmark or report
I am trying to install glibc on Alpine Linux. I am running Alpine Linux in the Docker. Here are the steps I am using: docker pull alpine docker run -it alpine /bin/sh apk add --no-cache make gcc l...
Share, comment, bookmark or report
The aws-cli package for Alpine is currently listed in the community repo on the edge branch (1.18.55.r0). I modified /etc/apk/repositories to target this repo. The install blew up looking for py3-urllib3, but I got around that and finally got a clean install with no errors, as below: ~ $ sudo apk add aws-cli@edge-comm.
Share, comment, bookmark or report
Comments