The /data directory is not mounted when your project is building on our build server, so you can’t access it from your Dockerfile. The /data volume only exists when the container is running on the deployed devices.
I would suggest copying to /usr/src/app during the build and then having a start script that runs on the device to copy the file across to /data.
Hi @flavia, one other way to do setting up a lockfile from the Dockerfile is to add it to the CMD step, combined it with calling the start script of your application, something like: