0

I have a Dockerfile with ARG before first FROM. It builds correctly on my server (Docker version 20.10.7) however when I try to build it as part of GitLab CICD (GitLab version 13.7.4) within a DinD container (image docker:20.10.7) the build fails with the following message:

Please provide a source image with `from` prior to commit

I'll appreciate help with resolving this issue.

Thanks, Barak

David Maze
  • 130,717
  • 29
  • 175
  • 215
Barak Adorian
  • 193
  • 1
  • 9
  • Does this answer your question? [Docker - Build Arg in Source File](https://stackoverflow.com/questions/40273070/docker-build-arg-in-source-file) – Nicolas Pepinster Sep 23 '21 at 19:56
  • Thanks Nicolas, unfortunately the question refers to an older version of Docker, in which ARG couldn't come before FROM. The Docker version I'm using (20.10.7) should allow it. – Barak Adorian Sep 30 '21 at 12:27

0 Answers0