AkshitLakhera / PenCraft-Full-Stack-Blogging-Application

PenCraft: React frontend, Cloudflare Workers backend. Features Prisma for DB, JWT for auth, and Tailwind CSS with Aceternity UI components for styling. Simplifying blogging with efficiency.
https://pen-craft.vercel.app
MIT License
16 stars 36 forks source link

Add Dockerfile for containerization #86

Open CodexRaunak opened 1 week ago

CodexRaunak commented 1 week ago

We need to add a Dockerfile to containerize the PenCraft-Full-Stack-Blogging-Application. This will help ensure consistency across different development and production environments. The Dockerfile should:

  1. Use a Node.js image as the base.
  2. Set the working directory.
  3. Install dependencies for the backend, frontend, and common packages.
  4. Build the frontend using the vite build tool.
  5. Copy the necessary files.
  6. Expose port 3000 and run the backend development server (wrangler dev).

Acceptance Criteria:

  1. Dockerfile is added to the root directory of the project.
  2. Dockerfile can successfully build and run the application.
github-actions[bot] commented 1 week ago

👋 Thank you @CodexRaunak for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

CodexRaunak commented 1 week ago

can I work on it @AkshitLakhera under gssoc-24ext and hacktoberfest, i am interested in solving this issue

AkshitLakhera commented 1 week ago

@CodexRaunak I am assigning to you .

Ameerjafar commented 3 days ago

@AkshitLakhera is the issue it still open.

CodexRaunak commented 3 days ago

Yes, I am working on it, i will finish it by today and make the PR, sorry for the delay, i had an exam

CodexRaunak commented 3 days ago

image Can anyone help me @AkshitLakhera with this error logs upon running docker-compose up --build I created 2 docker files, one for the frontend and one for the backend

image image