Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with docker compose #265

Open
Danikileitor opened this issue Aug 6, 2024 · 1 comment
Open

Error with docker compose #265

Danikileitor opened this issue Aug 6, 2024 · 1 comment

Comments

@Danikileitor
Copy link

When i try to compile using docker compose i always get the following error:

` => [springboot-app internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 247B 0.0s
=> [springboot-app internal] load metadata for docker.io/library/openjdk:20 1.0s
=> [springboot-app auth] library/openjdk:pull token for registry-1.docker.io 0.0s
=> [springboot-app internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [springboot-app internal] load build context 0.0s
=> => transferring context: 2B 0.0s
=> [springboot-app 1/2] FROM docker.io/library/openjdk:20@sha256:cbf26a2c1a9c347a907a5ceb2edad13dc0e9cc22464cef5 0.0s
=> => resolve docker.io/library/openjdk:20@sha256:cbf26a2c1a9c347a907a5ceb2edad13dc0e9cc22464cef5861ac6d278e7303 0.0s
=> ERROR [springboot-app 2/2] ADD backend/target/digimon-tcg-sim.jar /app/digimon-tcg-sim.jar 0.0s

[springboot-app 2/2] ADD backend/target/digimon-tcg-sim.jar /app/digimon-tcg-sim.jar:


failed to solve: failed to compute cache key: failed to calculate checksum of ref 80f35b5f-8bed-43cf-878e-d73e1ebd4f22::m5i2lxefb1lq2hdz0gwouphx7: "/backend/target/digimon-tcg-sim.jar": not found`

@alessandrostagni
Copy link
Contributor

alessandrostagni commented Aug 22, 2024

You need to build the jar by running mvn -B package --file backend/pom.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants