Category : docker-build

Dockerfile – FROM alpine RUN apk add –update redis CMD ["redis-server"] Running with docker build . command in cmd and getting below error, redis-image>docker build . Sending build context to Docker daemon 2.048kB Step 1/3 : FROM alpine —> 6dbb9cc54074 Step 2/3 : RUN apk add –update redis —> Running in 00081ad2850c fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz fetch ..

Read more

Given this Dockerfile: FROM docker.io/alpine RUN mkdir test # RUN umask 0022 COPY README /test/README COPY –chmod=777 README /test/README-777 COPY –chmod=755 README /test/README-755 COPY FORALL /test/FORALL COPY –chmod=777 FORALL /test/FORALL-777 COPY –chmod=755 FORALL /test/FORALL-755 RUN ls -la /test I’d expect to have the read, write, execute permissions be set accordingly by Docker during the build ..

Read more

I have a custom php container that suddenly is no longer building correctly. This is my Dockerfile: FROM php:7.4-fpm-alpine LABEL name="PHP App" LABEL version="1.0" RUN apk add –no-cache $PHPIZE_DEPS && pecl install xdebug-2.9.6 && docker-php-ext-enable xdebug RUN docker-php-ext-install pdo pdo_mysql RUN apk add –no-cache freetype libjpeg-turbo libpng freetype-dev libjpeg-turbo-dev libpng-dev && docker-php-ext-configure gd –with-freetype=/usr/include/ # ..

Read more

The node section is working as expected. However, the Python section is skipping during the docker build stage. The python mkdocs is required to run and node as well. The script is below for dockerfile FROM python:3 as python WORKDIR /app RUN pip install mkdocs FROM node:14-buster-slim as nodejs WORKDIR /app COPY yarn.lock package.json packages/backend/dist/skeleton.tar.gz ..

Read more

We are following this tutorial to use dind in Kubernetes: https://medium.com/hootsuite-engineering/building-docker-images-inside-kubernetes-42c6af855f25 We face this issue while attempting a docker build from the container: platform linux/arm64 not supported I noticed our managed K8S cluster runtime is containerd://1.4.3 Seeing that docker use containerd, is there any chance that dind and docker-build succeed ? Source: Docker..

Read more

$docker build -t dash-example .m ………. ……… Downloading/unpacking click>=7.1.2 (from Flask==2.0.1->-r /var/app/requirements.txt (line 6)) Cleaning up… Exception: Traceback (most recent call last): File "/var/app/lib/python3.4/site-packages/pip/_vendor/pkg_resources.py", line 2482, in _dep_map return self.__dep_map File "/var/app/lib/python3.4/site-packages/pip/_vendor/pkg_resources.py", line 2344, in __getattr__ raise AttributeError(attr) AttributeError: _DistInfoDistribution__dep_map During handling of the above exception, another exception occurred: Traceback (most recent call last): File ..

Read more