This project is containerized for easy setup and deployment. You can use either Docker or Podman to build and run the container, as both tools are compatible with this setup.
Ensure you have either Docker or Podman installed on your system.
Docker Installation Guide Podman Installation Guide
- Clone the Repository:
git clone https://github.com/your-username/your-repository.git
cd your-repository
- Build the Image:
Using Docker
docker build -t your-image-name .
Using Podman
podman build -t your-image-name .
This will create an image named your-image-name based on the configuration in the Dockerfile.
To run the container, you’ll need to map any required ports and pass environment variables.
- Run the Container:
Using Docker
docker run --env-file .env -p 3000:3000 your-image-name
Using Podman
podman run --env-file .env -p 3000:3000 your-image-name
- --env-file: Specifies environment variables, typically stored in a .env file.
- -p 3000:3000: Maps port 3000 of your local machine to port 3000 in the container.
To stop the running container:
Using Docker
docker stop container_id_or_name
Using Podman
podman stop container_id_or_name
Use docker ps or podman ps to list running containers and get the container ID or name.
If you want to export the image to a .tar file for sharing:
Using Docker
docker save -o your-image-name.tar your-image-name
Using Podman
podman save -o your-image-name.tar your-image-name
This .tar file can then be loaded on another system.
To load the saved image on a new system:
Using Docker
docker load -i your-image-name.tar
Using Podman
podman load -i your-image-name.tar