very new to Docker here. I am trying to use a maven 2.1.0 zip to create a docker image.
dockerfile.docker file is :
# syntax=docker/dockerfile:1 FROM scratch LABEL maintainer="Myname" LABEL maintainer="myemail" RUN wget HTTP://archive.apache.org/dist/maven/binaries/apache-maven-2.1.0-bin.zip RUN unzip
I am not exactly sure if I am doing this right
docker build -t apache-maven:2.1.0 .
Essentially I just wanted to create this image locally so I could then push it out to my targeted endpoint. Any help realizing what I did wrong would be appreciated. Whenever I run this build command it tells me it failed to read the dockerfile and that there’s no such file or directory.
Source: Docker Questions