Reinitialize repository history and exclude generated OTA artifact outputs. Made-with: Cursor
17 lines
533 B
Bash
Executable File
17 lines
533 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# expo-updates-server-go Docker 启动脚本
|
|
# 使用前请确保已经构建好镜像: docker build -t carrot-bbs-updates-server:latest .
|
|
|
|
docker run -d \
|
|
--name carrot-bbs-updates-server \
|
|
-p 3001:3001 \
|
|
-e PORT=3001 \
|
|
-e HOSTNAME=http://127.0.0.1:3001 \
|
|
-e UPDATES_ROOT=/data/updates \
|
|
-e PRIVATE_KEY_PATH=/data/privatekey.pem \
|
|
-e ADMIN_TOKEN=dev-token \
|
|
-v /opt/carrot-bbs/updates:/data/updates \
|
|
-v /opt/carrot-bbs/keys/privatekey.pem:/data/privatekey.pem:ro \
|
|
carrot-bbs-updates-server:latest
|