Vapora/.woodpecker/Dockerfile.cross
Jesús Pérez d86f051955
Some checks failed
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled
fix: End-of-file and trailing-whitespace pre-commit compliance
Resolve pre-commit hook formatting failures for multiple files:

**Files Fixed:**
- .woodpecker/Dockerfile — Add missing final newline
- .woodpecker/Dockerfile.cross — Add missing final newline
- justfiles/ci.just — Remove trailing whitespace from recipe definitions
- docs/setup/tracking-setup.md — Add missing final newline
- crates/vapora-backend/src/api/provider_metrics.rs — Add missing final newline

**Hooks Passing:**
 end-of-file-fixer — Files now have proper final newlines
 trailing-whitespace — Removed all trailing spaces
 mixed-line-ending — Line endings normalized

These changes ensure the pre-commit framework can properly validate file formatting without blocking commits on infrastructure issues.
2026-01-11 21:42:00 +00:00

43 lines
1.1 KiB
Docker

# Dockerfile for cross-platform compilation
# Supports building for multiple targets using docker
FROM ubuntu:22.04
# Install build essentials
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
ENV PATH="/root/.cargo/bin:${PATH}"
# Install cross tool for cross-compilation
RUN cargo install cross --locked
# Create workspace directory
WORKDIR /workspace
# Copy entire project
COPY . .
# Default build target
ARG TARGET=x86_64-unknown-linux-gnu
ENV BUILD_TARGET="${TARGET}"
# Build command
RUN cross build --target "${BUILD_TARGET}" --release
# Extract binaries to output directory
RUN mkdir -p /output/bin && \
find target/"${BUILD_TARGET}"/release -maxdepth 1 -type f -executable -exec cp {} /output/bin/ \;
# Create manifest
RUN echo "{ \"target\": \"${BUILD_TARGET}\", \"built\": \"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\" }" > /output/BUILD_INFO.json
# Default command
CMD ["/bin/bash"]