Skip to content

[Feature] Dockerize the Website #35

@kshitijaucharmal

Description

@kshitijaucharmal

Feature Summary

Containerize the OSS Website using Docker to provide a consistent development and deployment environment across all platforms.

Problem or Need

Currently, developers must manually install Node.js and manage dependencies locally. This can lead to:

  • "It works on my machine" bugs due to different Node versions or OS environments.
  • Complex onboarding for new members who may struggle with local environment setup.
  • Deployment inconsistency between local development and production hosting.

Describe the Solution

Create a Dockerfile and docker-compose.yml to streamline the setup process.

Key Requirements:

  • Multi-stage Dockerfile: Optimize the image size by separating the build environment from the production runtime.
  • Docker Compose: Add a docker-compose.yml file to allow members to start the entire environment (including potential future services like a database or CMS) with a single command.
  • Layer Caching: Ensure package.json is copied and installed before the source code to speed up subsequent builds.
  • Documentation: Update the README.md with instructions on how to run the site using Docker.

Alternatives Considered (Optional)

No response

Additional Info or References (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions