reverting docker file changes, adding script to test things locally

This commit is contained in:
orangecoding
2025-10-02 09:37:01 +02:00
parent c151f4f76e
commit 9dd3947cb7
2 changed files with 22 additions and 11 deletions

18
docker-test.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/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
# Build image from local Dockerfile
docker build -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 \
fredy:local