项目文件夹

文件
sharafdin 5c1a984f6d feat(docker): add core library dockerization
- Add Dockerfile for production builds
- Add Dockerfile.dev for development
- Add Dockerfile.test for testing
- Add docker-compose.yml for easy workflow
- Organize in docker/core/ directory
2026-01-12 12:43:53 +03:00

49 行
1.0 KiB
YAML

version: '3.8'
services:
# Development environment
dev:
build:
context: ../..
dockerfile: docker/core/Dockerfile.dev
volumes:
- ../../:/app
- cargo-cache:/usr/local/cargo/registry
- target-cache:/app/target
environment:
- RUST_LOG=debug
- CARGO_TARGET_DIR=/app/target
stdin_open: true
tty: true
command: /bin/bash
# Test runner
test:
build:
context: ../..
dockerfile: docker/core/Dockerfile.test
volumes:
- ../../:/app
- cargo-cache:/usr/local/cargo/registry
- target-cache:/app/target
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info
command: cargo test --features lex,pdf_extract -- --nocapture
# Build release
build:
build:
context: ../..
dockerfile: docker/core/Dockerfile
target: builder
volumes:
- ../../:/app
- cargo-cache:/usr/local/cargo/registry
- target-cache:/app/target
command: cargo build --release --features lex,pdf_extract
volumes:
cargo-cache:
target-cache: