mohammed-bahumaish / prisma-editor

Prisma Editor - A powerful tool to visualize and edit Prisma Schema.

Home Page:https://prisma-editor.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FR] Make dockerfile start straight and independent of a bunch of external APIs

matbgn opened this issue · comments

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)

@matbgn Please go ahead and make a PR, I'm happy to see a contributor :)

Was meaning for the doc ;-) For the rest, but depending on your future plans, you will be way more effective