Skip to content

Commit ad083b9

Browse files
committed
🛠 [fix][tasks] Improve preview:docker task
1 parent 46fd65e commit ad083b9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/preview/docker.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ set -euo pipefail
44

55
IMAGE_NAME="tomy0000000/kayman:latest"
66
ENV_FILE="instance/development.env"
7+
CLIENTS_JSON="clients.json"
8+
HOST_PATH="./backend/instance/${CLIENTS_JSON}"
9+
MOUNT_PATH="/etc/secrets/${CLIENTS_JSON}"
710

811
docker run \
912
--rm \
1013
--env-file "${ENV_FILE}" \
11-
-p 8000:8000 \
14+
--volume "${HOST_PATH}:${MOUNT_PATH}" \
15+
--publish 8000:8000 \
1216
"${IMAGE_NAME}"

0 commit comments

Comments
 (0)