-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add Docker support for easier setup and deployment #28
Conversation
- Update .eslintrc.json to disable certain rules - Add NEXTAUTH_SECRET and OPENAI_API_KEY environment variables to .env - Modify package.json to disable lint during the build process - Update .gitignore to ignore the /db directory - Update README.md with instructions on how to run the app with Docker These changes allow the application to be built and run within a Docker container, while maintaining data persistence using a mounted volume for the SQLite database.
@Frajder is attempting to deploy a commit to the reworkd Team on Vercel. A member of the Team first needs to authorize it. |
This is awesome, thank you so much 🚀 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
RUN npm ci | ||
|
||
# Copy the rest of the application code | ||
COPY . . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pretty sure we don't want to be copying everything here (eg: the node modules)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI i made some changes in #34. Node modules are no longer being copied
Tested and can confirm that it works perfectly! I just had to make the setup.sh file executable.
|
This pull request adds Docker support to the project, allowing for an easier setup and deployment process. The changes made include:
.eslintrc.json
to disable certain rules that were causing the build to fail.NEXTAUTH_SECRET
andOPENAI_API_KEY
environment variables to the.env
file.package.json
to disable lint during the build process..gitignore
to ignore the/db
directory.README.md
with instructions on how to run the app with Docker.By adding Docker support, users can now easily build and run the application within a Docker container. This simplifies the setup process and ensures a consistent environment across different machines. Additionally, data persistence is maintained using a mounted volume for the SQLite database.
Please review the changes and let me know if any further modifications are required before merging.