To run the project, you need to have installed:
Follow the instructions below to run the container:
git clone https://github.com/GEdO23/cpsb-api.git
cd cpsb-api
docker build -t cpsb-api .
This command will:
- Build the image from the Dockerfile (
-t cpsb-api
) - Use the context of the current directory (where the Dockerfile is located)
- Name the image as
cpsb-api
docker run -d --name cpsb-api -p 8080:8080 cpsb-api
This command will:
- Run the container in the background (
-d
) - Name the container as
cpsb-api
(--name cpsb-api
) - Map port 8080 of the host to port 8080 of the container (
-p 8080:8080
)
Access the API at http://localhost:8080