Bom dia, gostaria de sanar uma dúvida na hora de build em imagem esta apresentando erro. Irei colocar meu código e print....
código vsCode:
FROM node:latest
MAINTANEIR lenon costa
COPY . /var/www
WORKDIR /var/www
RUN npm install
ENTRYPOINT ["npm", "start"]
EXPOSE 3OOO
Unknown instruction: MAINTANEIRdockerfile-utils(38)
comando ls na pasta(powershell)
Mode LastWriteTime Length Name
-a---- s 11/03/2021 10:01 139 Dockerfile
-a---- 11/03/2021 01:32 269 index.html
-a---- 27/07/2017 16:45 241 index.js
-a---- 27/07/2017 17:02 338 main.css
-a---- 27/07/2017 16:41 283 package.json
comando executado:
docker build -f Dockerfile -t lenon costa/nodeteste1 .
mensagem de erro após esse comando ode cima
[+] Building 6.1s (2/2) FINISHED
=> [internal] load build definition from Dockerfile 5.3s
=> => transferring dockerfile: 178B 0.0s => [internal] load .dockerignore 5.5s
=> => transferring context: 2B 0.0s
failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 2: unknown instruction: MAINTANEIR PS C:\Users\Banco\Desktop\volume-exemplo> docker build -f Dockerfile -t lenon costa/nodeteste1 . "docker build" requires exactly 1 argument. See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
PS C:\Users\Banco\Desktop\volume-exemplo> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e898c9554750 node "docker-entrypoint.s…" 34 minutes ago Exited (254) 34 minutes ago unruffled_lalande
f4aa4728fd3b node "docker-entrypoint.s…" 9 hours ago Exited (255) 41 minutes ago 0.0.0.0:8080->3000/tcp unruffled_ritchie
9b821df22e5f node "docker-entrypoint.s…" 11 hours ago Exited (1) 10 hours ago dreamy_maxwell
3da323a5f66a node "docker-entrypoint.s…" 11 hours ago Exited (254) 11 hours ago competent_lamarr
confome consta a imagem não foi criada
PS C:\Users\Banco\Desktop\volume-exemplo> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest d1165f221234 5 days ago 13.3kB
ubuntu latest 4dd97cefde62 7 days ago 72.9MB
node latest 135b0832eaab 7 days ago 937MB
dockersamples/static-site latest f589ccde7957 4 years ago 191MB
Como devo proceder ?
(eu consegui resolver, porém no vsconde apresenta(tachado > MAINTAINER Strikethrough) é algum programa que precisa instalar ? [failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 2: unknown instruction: MAINTANEIR]