mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
19 lines
384 B
Bash
19 lines
384 B
Bash
#!/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
|