无法通过前端DockerFIle.v0解决 [英] Failed To Resolve With FrontEnd DockerFIle.v0
本文介绍了无法通过前端DockerFIle.v0解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试为我的Gatsby应用程序构建Docker映像.每当我运行命令docker build . -t gatsbyapp
时,都会给我一个错误:
I was trying to build my Docker image for my Gatsby Application. Whenever I run the command docker build . -t gatsbyapp
, it gives me an error:
failed to solve with frontend dockerfile.v0: failed to build LLB:
failed to compute cache key: "/.env" not found: not found
同时我的Dockerfile显示如下:
Meanwhile my Dockerfile is shown below:
FROM node:13
WORKDIR /app
COPY package.json .
RUN yarn global add gatsby-cli
RUN yarn install
COPY gatsby-config.js .
COPY .env .
EXPOSE 8000
CMD ["gatsby","develop","-H","0.0.0.0"]
推荐答案
我遇到了同样的问题,我要做的就是大写docker配置文件名
I had the same issue and all I had to do was to capitalize the docker configuration filename
dockerfile
>没用
Dockerfile
>做过
这篇关于无法通过前端DockerFIle.v0解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文