This document provides instructions on how to build and run the Bahá'í Date API using Docker and Docker Compose.
To build the Docker image, navigate to the root directory of the project and run the following command:
docker build -t bahai-date-api .
Once the image is built, you can run it as a container with the following command:
docker run -p 1844:1844 bahai-date-api
This will start the Bahá'í Date API, and it will be accessible on http://localhost:1844.
To build and run the container with Docker Compose, navigate to the root directory of the project and run the following command:
docker-compose up -d
This will build the image (if it's not already built) and start the container in the background. The API will be accessible at http://localhost:1844.
To stop the container, run the following command:
docker-compose down