Kind of tricky, eh? For instance, I can't even ru...
# all-things-deployment
s
Kind of tricky, eh? For instance, I can't even run the command you pasted above as it complains that "docker build requires exactly 1 argument". Without "-f" it then tries to build the Dockerfile in ./docker/datahub-frontend, but the build context becomes that folder, not the root. Which is why
gradlew
is missing. What you want to run is this:
sudo docker build -t updated_datahub_frontend_react -f ./docker/datahub-frontend/Dockerfile .
Note the final
.
there -- that's giving the build context as the datahub root folder, and -f is specifying which Dockerfile to use (I tried just the directory for frontend, but it complains that it is a directory and failed to read dockerfile). It's still building on my machine (and my 13" macbook's fans are buzzing like crazy) but it doesn't fail on a missing
gradlew
like it did before.
❤️ 1
🎉 1