Files
fredy/docker-test.sh

18 lines
431 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -e
# Stop and remove old container if it exists
if [ "$(docker ps -aq -f name=fredy)" ]; then
docker stop fredy || true
docker rm fredy || true
fi
2025-10-06 19:55:37 +02:00
# Build image from local Dockerfile, forcing a fresh build without cache
docker build --no-cache -t fredy:local .
# Run container with volumes and port mapping
docker run -d --name fredy \
-v fredy_conf:/conf \
-v fredy_db:/db \
-p 9998:9998 \
2025-10-06 19:55:37 +02:00
fredy:local