-
-
Couldn't load subscription status.
- Fork 12
Open
@plasticlobster
Description
🐛 bug report
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
The .dockerignore file contains "www" as an entry.
The Dockerfile has COPY www ./ as basically its only entry.
These conflict with each other, causing docker build to throw an error and fail.
I suspect (and suggest) the Dockerfile needs to be augmented to actually perform the build and that this Dockerfile was put together just to get an nginx server out there with this on it. I suspect you're removing the "www" entry from dockerignore before building, as I had to.
How has this issue affected you? What are you trying to accomplish?
I was just trying to build a docker image, and it wasn't possible with the Dockerfile in the repo.
To Reproduce
yarn install
yarn start #(then cancel)
yarn build:deps
yarn build:sandpack
Then:
$ docker build -t asdf .
[+] Building 2.2s (8/8) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 36B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 405B 0.0s
=> [internal] load metadata for docker.io/library/nginx:1.25.3-alpine 2.0s
=> [auth] library/nginx:pull token for registry-1.docker.io 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 2B 0.1s
=> [1/3] FROM docker.io/library/nginx:1.25.3-alpine@sha256:f2802c2a9d09c7aa3ace27445dfc5656ff24355da28e7b958074a0111e3fc076 0.0s
=> CACHED [2/3] WORKDIR /var/www/codesandbox 0.0s
=> ERROR [3/3] COPY www ./ 0.0s
------
> [3/3] COPY www ./:
------
failed to compute cache key: "/www" not found: not found
Link to sandbox: N/A
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | main/HEAD |
| Browser | N/A |
| Operating System | N/A |
Metadata
Metadata
Assignees
Labels
No labels