You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue while trying to use "docker-compose build" for setting up wagtail project using Docker. The issue seems to be related to the COPY command for the package.json and package-lock.json files in the Dockerfile.frontend.
Error Details:
During the Docker build process for the frontend service, I'm seeing the following error message:
`failed to solve: failed to compute cache key: failed to calculate checksum of ref e1bce70e-3120-4a7b-99ba-53a746beadee::4yljc7iekkcpqwccr7citf7g3: "/wagtail/package.json": not found
`
Dockerfile.frontend:
`FROM node:18-slim
LABEL maintainer="hello@wagtail.org"
RUN apt-get update && apt-get install rsync -y
COPY ./wagtail/package.json ./wagtail/package-lock.json ./
RUN npm --prefix / install --loglevel info
`
docker-compose.yml:
`services:
---------
frontend:
container_name: "frontend"
build:
context: .
dockerfile: Dockerfile.frontend
working_dir: /code/wagtail
volumes:
- ./wagtail:/code/wagtail:delegated,rw
- node_modules:/code/wagtail/node_modules/
command: bash -c "echo 'Copying node_modules, this may take a few minutes...' && rsync -rah --info=progress2 /node_modules /code/wagtail/ && npm run start"
restart: "no"
tty: true
`
Troubleshooting Steps Taken:
Verified correct paths and file locations in Dockerfile and docker-compose.yml.
Checked Docker build context.
Ensured proper file permissions.
Additional Notes:
I have tried several solutions based on the suggestions in the Wagtail documentation and other sources, but I'm still unable to resolve the issue. The error seems to be related to the COPY step for the package.json and package-lock.json files.
Any help or guidance in troubleshooting and resolving this issue would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
I'm encountering an issue while trying to use "docker-compose build" for setting up wagtail project using Docker. The issue seems to be related to the COPY command for the package.json and package-lock.json files in the Dockerfile.frontend.
Error Details:
During the Docker build process for the frontend service, I'm seeing the following error message:
Dockerfile.frontend:
docker-compose.yml:
Troubleshooting Steps Taken:
Additional Notes:
I have tried several solutions based on the suggestions in the Wagtail documentation and other sources, but I'm still unable to resolve the issue. The error seems to be related to the COPY step for the package.json and package-lock.json files.
Any help or guidance in troubleshooting and resolving this issue would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: