Category : alpine

So I’m trying to build an Alpine container, including an app that requires bash and curl to install. Trouble is that Alpine seems to think the year is 2037 (possibly because of the host Pi’s lack of a hardwareClock), so the apk call fails: fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/armv7/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/armv7/APKINDEX.tar.gz WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again ..

Read more

If I run this command with root privilege, it works as expected. However, since I switched to a non-root user, it stuck with fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz. Additionally, wget http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz can download the file successfully. Forget one thing, I added the non-root user to the docker group, otherwise this command would not work. Source: Docker..

Read more

In a GitLab repo, I have a Dockerfile with the following lines, FROM python:alpine RUN addgroup -S java RUN adduser -s /bin/bash -S -G java java USER java WORKDIR /home/java so that when the image is instantiated (container running), it will run as user ‘java’ When GitLab CI/CD clones the project code however, it is ..

Read more

I’m building a Docker image with Alpine, php7.2-fpm and Composer. The problem happens while trying to install Composer, which uses https to download the installer via php. I added the repository to be able to install php7.2 (which is used to install composer) and its packages: RUN wget -O /etc/apk/keys/phpearth.rsa.pub https://repos.php.earth/alpine/phpearth.rsa.pub && echo "https://repos.php.earth/alpine/v3.7" >> ..

Read more

I have Django application that works just fine when I build my docker image using python:3.10.0rc2-buster or python:3.10.0rc2-slim-buster without any problem. In order to decrease the image size, I switched to python:3.10-rc-alpine, however, I am facing dozens of missing dependencies. I found this post very helpful Docker Alpine Linux python (missing) It allowed me to ..

Read more

*FROM alpine:latest # Copy source to container RUN mkdir -p /usr/app # Copy source code COPY package.json /usr/app COPY package-lock.json /usr/app COPY . /usr/app # Set working directory WORKDIR /usr/app # Environment variables ENV BASE_URL="Local https url" ENV PARALLEL_RUN=false ENV TAG=int ENV PLAYWRIGHT_BROWSERS_PATH=/usr/lib # npm install RUN apk add –update npm RUN apk add chromium ..

Read more