I run goss tests within my Dockerfile so that the image doesn't get built if the tests fail. This workflow works fine for most of my images. I'm experiencing a problem in one image where my tests fails during build, but pass if I connect to the container and run the test manually. I am passing in a var file, and I confirmed during build that it contains the correct values. Any insight on why this could happen?
I run goss tests within my Dockerfile so that the image doesn't get built if the tests fail. This workflow works fine for most of my images. I'm experiencing a problem in one image where my tests fails during build, but pass if I connect to the container and run the test manually. I am passing in a var file, and I confirmed during build that it contains the correct values. Any insight on why this could happen?