Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile from dockerfile #4

Open
carlostkd opened this issue Aug 8, 2023 · 9 comments
Open

Compile from dockerfile #4

carlostkd opened this issue Aug 8, 2023 · 9 comments

Comments

@carlostkd
Copy link

Hi
im trying to compile the bot but no matter what i do i always get errors not a docker expert

running the docker build where the Dockerfile is gives me error

COPY [apps/nostr-bot/NostrBot.Web/NostrBot.Web.csproj, apps/nostr-bot/NostrBot.Web/

but the file exists in that directory weird...

i have deleted the .Dockerfile but i get the same error

then i have tried

DOCKER_BUILDKIT=1 docker build -f .

it starts to compile but stops at stage 3

=> ERROR [build 3/7] COPY [apps/nostr-bot/NostrBot.Web/NostrBot.Web.csproj, apps/nostr-bot/NostrBot.Web/]

any ideas to solve this?

thanks in advanced

@Marfusios
Copy link
Owner

Hey @carlostkd,

I have not tried Docker execution yet, dockerfile was automatically generated by my IDE, and I thought it would work out of the box.
I need to try it on my side.

@weex
Copy link
Contributor

weex commented Oct 26, 2023

I no longer see a Dockerfile, should this be closed?

@Marfusios
Copy link
Owner

https://github.com/Marfusios/nostr-client/blob/master/apps/nostr-bot/NostrBot.Web/Dockerfile

Docker support would be great, much easier to deploy the bot with a custom config

@carlostkd
Copy link
Author

https://github.com/Marfusios/nostr-client/blob/master/apps/nostr-bot/NostrBot.Web/Dockerfile

Docker support would be great, much easier to deploy the bot with a custom config

docker works for you?
i have tried without success care to update the README and include the installation guide?

Cheers

@antonioconselheiro
Copy link

I tried to make the tool available with docker on localhost to explore a local relay:
https://github.com/antonioconselheiro/omegle-nostr/blob/master/relay-debug/Dockerfile.debug

But this error launch when I try to run the container:
image

And I didn't found this error inside the code.

@weex
Copy link
Contributor

weex commented May 6, 2024

Does your code use the OpenAI API? That error seems to be about an invalid API key.

@antonioconselheiro
Copy link

antonioconselheiro commented May 6, 2024

I don't use

@antonioconselheiro
Copy link

antonioconselheiro commented May 7, 2024

The project in my Dockerfile is this project repo, in a search in the files I found this OpenAPI libs, maybe should I configure something to run the project?

image

I'm just trying to run this screen to debug my localhost relay, but it looks like there's more in this project than this debug page:
image

Maybe should I run another .dll to ignore this OpenAPI dependency and needed settings?

@Marfusios
Copy link
Owner

Hey @antonioconselheiro,

you are trying to start Nostr bot and not debug page

image

Nostr bot requires API keys to OpenAI, it is in that sk-xxx format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants