[FR] Make dockerfile start straight and independent of a bunch of external APIs
matbgn opened this issue · comments
Matthieu Borgognon commented
Remove mandatory dependence to following APIs:
DATABASE_URL: Use sqlite3 if none is provided
NEXTAUTH_SECRET: Run nextauth locally, e.g. with docker-compose or bypass it completely
NEXTAUTH_URL: Run nextauth locally, e.g. with docker-compose or bypass it completely
OPEN_AI_API_KEY: Disable AI if not provided
GITHUB_CLIENT_ID: Get rid of this
GITHUB_CLIENT_SECRET: Get rid of this
Steps done so far
docker build . -t prisma-editor/matbgn:0.0.0
docker run -p 3000:3000 --name prisma-editor prisma-editor/matbgn:0.0.0
Side notes
- Maybe EXPOSE port 3000 in Dockerfile to let it clear where to hook port when running
- Could be really cool if you write a usage or how-to start section in the main README.md (If you validate above steps, I could also do a PR)
Mohammed Ba humaish commented
@matbgn Please go ahead and make a PR, I'm happy to see a contributor :)
Matthieu Borgognon commented
Was meaning for the doc ;-) For the rest, but depending on your future plans, you will be way more effective