Step 2: Build and Configure Docker Image
Step 2.1: Build and Push Docker Image to Docker Hub
Replace YOUR_DOCKERHUB_USERNAME with your actual Docker Hub username in the commands below.
# Build the Docker image
docker build -f Dockerfile -t YOUR_DOCKERHUB_USERNAME/privacy-preserving-addition:latest .
# Push to Docker Hub
docker push YOUR_DOCKERHUB_USERNAME/privacy-preserving-addition:latest
Step 2.2: Edit docker-compose.yml
Replace YOUR_DOCKERHUB_USERNAME with your actual Docker Hub username in the docker-compose.yml file.
services:
app:
image: YOUR_DOCKERHUB_USERNAME/privacy-preserving-addition:latest
network_mode: host
restart: unless-stopped
volumes:
- /app/id.sec:/app/keys/id.sec:ro
command: ["--ip-addr", "0.0.0.0:4000", "--secret", "/app/keys/id.sec", "--loader", "/app/loader.pub", "--requester", "/app/requester.pub"]