feat: Add Dockerfile and simplify install script

- Add a Dockerfile for easy building and running of the application.
- Simplify the install.sh script by removing unnecessary steps and
  hardcoded values.  The installation of Tailwind CSS and Shadcn UI
  is now handled within the application.  This allows for greater
  flexibility and simplifies the process.
- Use environment variables for HOST and PORT, providing defaults.
This commit is contained in:
Mahmoud Emad
2025-05-11 17:59:50 +03:00
parent 486b5ceb05
commit e2eb77c3b9
3 changed files with 66 additions and 41 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# Use a base image with Bun
FROM oven/bun:latest
# Set working directory
WORKDIR /app
# Copy the entire project
COPY . .
# Make the scripts executable
RUN chmod +x install.sh run.sh
# Run the install script to set up dependencies
RUN ./install.sh
# Set environment variables with defaults
ENV HOST=0.0.0.0
ENV PORT=3000
# Expose the port
EXPOSE ${PORT}
# Run the application
CMD ["./run.sh"]