Skip to content

Commit dbbd3ab

Browse files
committed
Fix Dockerfile to include nexa CLI binary from cli-v2.0.0 release
- Add curl to system dependencies - Update nexa CLI download URL to use correct release path - Simplify download logic to use single binary for all architectures - Docker images now include working nexa CLI: krishcdbry/nexadb:2.0.0
1 parent 0c4edb8 commit dbbd3ab

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

Dockerfile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ WORKDIR /app
1616
RUN apt-get update && \
1717
apt-get install -y --no-install-recommends \
1818
ca-certificates \
19+
curl \
1920
&& rm -rf /var/lib/apt/lists/*
2021

2122
# Copy application files
@@ -31,17 +32,9 @@ COPY admin_panel/ admin_panel/
3132
# Install Python dependencies
3233
RUN pip install --no-cache-dir msgpack
3334

34-
# Download nexa CLI binary (architecture-aware)
35-
RUN ARCH=$(uname -m) && \
36-
if [ "$ARCH" = "x86_64" ]; then \
37-
NEXA_URL="https://github.com/krishcdbry/nexadb/releases/latest/download/nexa-x86_64-unknown-linux-gnu"; \
38-
elif [ "$ARCH" = "aarch64" ]; then \
39-
NEXA_URL="https://github.com/krishcdbry/nexadb/releases/latest/download/nexa-aarch64-unknown-linux-gnu"; \
40-
fi && \
41-
if [ -n "$NEXA_URL" ]; then \
42-
curl -fsSL "$NEXA_URL" -o /usr/local/bin/nexa && \
43-
chmod +x /usr/local/bin/nexa || true; \
44-
fi
35+
# Download nexa CLI binary
36+
RUN curl -fsSL "https://github.com/krishcdbry/nexadb/releases/download/cli-v2.0.0/nexa" -o /usr/local/bin/nexa && \
37+
chmod +x /usr/local/bin/nexa
4538

4639
# Create data directory
4740
RUN mkdir -p /data

0 commit comments

Comments
 (0)