Questions tagged [docker-buildkit]

142 questions
0
votes
0 answers

docker BuildKit not printing ENV

I am trying the new docker kit to build an image since we need 2 different set of variables my docker file looks like: FROM python:3.7 as base RUN apt-get update -y FROM base as basic_build WORKDIR /app COPY ./path/to/requirements.txt…
pelos
  • 1,744
  • 4
  • 24
  • 34
0
votes
2 answers

How to debug what is causing layers built from the same codebase on different workstations to be different?

In our development workflow we build images, push them to a registry, and then deploy services from them in a staging cluster. The workflow is severely bogged down by huge sizes of image pushes, because layers built from the exact same codebase on…
Szczepan Hołyszewski
  • 2,707
  • 2
  • 25
  • 39
0
votes
0 answers

Why does using multiple Dockerfiles produce a smaller image than a multi-stage build?

The repository jupyter/docker-stacks provides multiple Dockerfiles for Jupyter Notebook images. These Dockerfiles build on each other in the following form: This Dockerfile is jupyter/base-notebook # Copyright (c) Jupyter Development Team. #…
Metalurgia
  • 487
  • 1
  • 4
  • 8
0
votes
1 answer

Docker RUN Instruction with a Mounted Secret in Exec Form

What is the proper syntax for a RUN instruction in a Dockerfile, that requires mounting a secret, in exec form? In other words, if a Dockerfile that looks something like: FROM node:fermium-alpine # . . . RUN --mount=type=secret,id=npmrc yarn…
Mike
  • 1,080
  • 1
  • 9
  • 25
0
votes
1 answer

Docker buildx - Select specific nodes for build monorepo support

We are using a K8s development tool called Tilt (https://tilt.dev/) which builds dev images of a stack with a ton of microservices and allows live reloading, etc. I have deployed remote builder pods to an AWS K8s cluster using buildx create with 10…
Zfalen
  • 878
  • 6
  • 20
0
votes
2 answers

Why does docker-compose build run my steps twice?

I'm using multi-stage building with a Dockerfile like this: ##################################### ## Build the client ##################################### FROM node:12.19.0 as web-client-builder WORKDIR /workspace COPY web-client/package*.json…
-1
votes
1 answer

Does Docker or any of its plugins support conditional syntax where certain blocks of RUN commands can be selectively executed?

I am trying the create a single Dockerfile for my development environments that I can use to customize an image by setting various flags. The following example illustrates this point, I'm currently using ARG and bash if/then to accomplish this.…
user1172468
  • 5,306
  • 6
  • 35
  • 62
1 2 3
9
10