dela 0.0.6

A task runner that delegates the work to other tools
Documentation
# syntax=docker/dockerfile:1.4
FROM dela-builder AS builder

# Test environment
FROM rust:alpine3.21

# Install build dependencies
RUN apk add --no-cache \
    musl-dev \
    gcc \
    make \
    openssl-dev \
    pkgconfig \
    bash

# Create test user and directory
RUN adduser -D testuser
WORKDIR /home/testuser

# Copy the cargo registry and target directory from the builder
COPY --from=builder /usr/local/cargo/registry /usr/local/cargo/registry
COPY --from=builder /app/target /home/testuser/target
RUN chmod -R 777 /usr/local/cargo/registry /home/testuser/target

# Copy project files
COPY Cargo.toml Cargo.lock ./
COPY src ./src
COPY resources ./resources
COPY README.md ./

# Set ownership
RUN chown -R testuser:testuser .

# Switch to test user
USER testuser

# Entry point script will be mounted
CMD ["bash", "/home/testuser/test_script.sh"]