mirror of
https://github.com/Xe138/windmill-git-sync.git
synced 2026-04-01 17:27:23 -04:00
Replace direct binary download with npm-based installation to properly support both amd64 and arm64 architectures. Changes: - Install Node.js 20 via NodeSource repository - Install windmill-cli globally via npm - Remove architecture-specific binary download logic that was failing because wmill binaries are not published separately from windmill server This fixes the "Exec format error" that occurred when attempting to run the wmill CLI on ARM64 systems.
31 lines
679 B
Docker
31 lines
679 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies including Node.js
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
curl \
|
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
&& apt-get install -y nodejs \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install wmill CLI via npm
|
|
RUN npm install -g windmill-cli
|
|
|
|
# Copy requirements and install Python dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY app/ ./app/
|
|
|
|
# Create workspace directory
|
|
RUN mkdir -p /workspace
|
|
|
|
# Expose port for webhook server
|
|
EXPOSE 8080
|
|
|
|
# Run the Flask server
|
|
CMD ["python", "-u", "app/server.py"]
|