Closed dejan94it closed 3 days ago
Hey, I see the error could be with the COPY
command.
have you tried COPY . .
instead of COPY / /
. In the first you copy the files to faucet's working directory, on the second on you copy the files to the root of the file system.
Let me know if this works.
Yeah! It worked!
I'm definetely not a Docker expert, and asking to chatgpt it told me that it's (almost) always better use COPY . .
instead of COPY / /
.
Anyway, the app started with all workers and I can use it in localhost!
Maybe I'm missing something but now I need to figure out how to exploit all workers: I opened two istances of the app, and calling functions which last some seconds I see that two istances are not running in parallel but one by one on worker 1.
Hey! Glad it worked. As per the workers. Workers are assigned according to IP address. SO, if you access from the same computer it will always go to the same worker.
At a very small scale there is a 50% chance (using two workers) that you fall into the same worker. Try accessing it from a different PC or network
Hi! I have the following Dockerfile:
in my folder I have all files and directories plus a simple app.R file:
When I run shiny::runApp(".") in my project folder the app starts smoothly, while when I run the container it loops on the following error: