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

Dockerize #8

Open
Sreyeesh opened this issue Dec 17, 2024 · 0 comments
Open

Dockerize #8

Sreyeesh opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Sreyeesh
Copy link
Owner


🚀 Why Dockerize the Project?

  1. Portability: Run your portfolio in any environment with Docker installed.
  2. Consistency: Eliminates "it works on my machine" issues.
  3. Deployment: Simplifies deployment workflows and makes it easy to package for testing or sharing.
  4. DevOps Experience: Demonstrates your ability to containerize projects effectively.

📝 Issue Description: Dockerize the Linux Terminal Portfolio

Title: Dockerize PortfolioFlow for Easy Deployment

Description:
To improve deployment consistency and portability, the Linux terminal-inspired portfolio (PortfolioFlow) will be dockerized. This will allow the project to run seamlessly across any system using Docker.

Tasks:

  1. Create a Dockerfile to build and serve the portfolio.
    • Use a lightweight base image like nginx or node (for static hosting).
  2. Add commands to expose the appropriate port (e.g., 8080).
  3. Test the Dockerized portfolio locally using:
    docker build -t portfolioflow .  
    docker run -p 8080:80 portfolioflow  
  4. Update the README with instructions for running the project with Docker.

🚀 How to Write the Dockerfile (Example)

Here’s a simple Dockerfile for static hosting using nginx:

# Use nginx to serve the static files
FROM nginx:alpine

# Copy portfolio files to the default nginx html directory
COPY ./ /usr/share/nginx/html

# Expose port 80
EXPOSE 80

# Start nginx
CMD ["nginx", "-g", "daemon off;"]

Benefits of Adding This as an Issue

  1. It adds clear value to your project.
  2. It demonstrates Docker skills, which are key in DevOps workflows.
  3. You can show this off in your GitHub Projects and add it to your portfolio’s help or documentation.
@Sreyeesh Sreyeesh added the enhancement New feature or request label Dec 17, 2024
@Sreyeesh Sreyeesh self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant