Fix Dockerfile RUN syntax and healthcheck command
Co-authored-by: Sun-ZhenXing <44517244+Sun-ZhenXing@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,7 @@ RUN apt update && \
|
|||||||
# Install microsandbox using the official install script
|
# Install microsandbox using the official install script
|
||||||
# This ensures we always get the latest version if MICROSANDBOX_VERSION is not set
|
# This ensures we always get the latest version if MICROSANDBOX_VERSION is not set
|
||||||
# and handles architecture detection automatically
|
# and handles architecture detection automatically
|
||||||
RUN VERSION="${MICROSANDBOX_VERSION:-}" \
|
RUN VERSION="${MICROSANDBOX_VERSION:-}" && \
|
||||||
curl -fsSL https://raw.githubusercontent.com/zerocore-ai/microsandbox/refs/heads/main/scripts/install_microsandbox.sh | sh
|
curl -fsSL https://raw.githubusercontent.com/zerocore-ai/microsandbox/refs/heads/main/scripts/install_microsandbox.sh | sh
|
||||||
|
|
||||||
# Setup directories for root user
|
# Setup directories for root user
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ services:
|
|||||||
exec server start --host 0.0.0.0 --port $${MICROSANDBOX_PORT:-5555} $${DEV_FLAG};
|
exec server start --host 0.0.0.0 --port $${MICROSANDBOX_PORT:-5555} $${DEV_FLAG};
|
||||||
working_dir: /workspace
|
working_dir: /workspace
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:${MICROSANDBOX_PORT:-5555}/health"]
|
test: ["CMD-SHELL", "msb --version || exit 1"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user