OneRingTranslator icon indicating copy to clipboard operation
OneRingTranslator copied to clipboard

Dockerfile?

Open skyler14 opened this issue 2 years ago • 4 comments

Any chance you might wrap this up to have a built in docker build file? It would make testing out and deploying this pretty standard and simple. For people who make plugins it'd be pretty trivial to just provide what needs to be appended to the dockerfile and build it again.

skyler14 avatar Sep 12 '23 22:09 skyler14

May be, but later.

janvarev avatar Sep 13 '23 04:09 janvarev

Hi @skyler14,

You want to have a Dockerfile to build this project ? I'll create one and do a PR later if @janvarev accept ? Thank u.

AbdelatifAitBara avatar Sep 21 '23 22:09 AbdelatifAitBara

I tried to run it in docker, but you have hardcoded 127.0.0.1 as listen host, can you please make it optional @janvarev ? Fpr docker I need to listen 0.0.0.0

upd: worked around this using this code, bu I not like it :)

# change workdir to /OneRingTranslator
import os

# Change workdir to /OneRingTranslator
os.chdir("/OneRingTranslator")
from run_webapi import uvicorn
uvicorn.run("run_webapi:app", host="0.0.0.0", port=4990, log_level="info")

zba avatar Jan 09 '24 08:01 zba

@zba Ok, in plans.

janvarev avatar Jan 09 '24 14:01 janvarev