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

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

Open
matbgn opened this issue Jul 15, 2023 · 2 comments

Comments

@matbgn
Copy link

matbgn commented Jul 15, 2023

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 matbgn changed the title Make dockerfile start straight and independent of a bunch of external APIs [FR] Make dockerfile start straight and independent of a bunch of external APIs Jul 15, 2023
@mohammed-bahumaish
Copy link
Owner

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

@matbgn
Copy link
Author

matbgn commented Jul 15, 2023

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

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

2 participants