apify / apify-actor-docker

Base Docker images for Apify actors.
https://hub.docker.com/u/apify
Apache License 2.0
70 stars 22 forks source link

Expose actor id in container when running Docker build #82

Closed jeanbmar closed 2 years ago

jeanbmar commented 2 years ago

Hey there,

Not sure this is the right place to create the issue but what I'm asking happens on your servers and is related to Docker :).

I use a monorepo with NPM workspaces, and I have issues deploying my actor because of it.

In order to selectively install my actor using npm install --workspace=my-actor, I would need the actor id to be available in the Dockerfile. Is it something you could add?

This change combined to this one https://github.com/apify/apify-cli/issues/277 would basically enable basic support for NPM workspaces monorepo.

Love the project, keep going 👍

jeanbmar commented 2 years ago

Thanks @pocesar for answering this on Discord.

Solution: