-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
50 lines (38 loc) · 1.8 KB
/
Copy pathDockerfile.dev
File metadata and controls
50 lines (38 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# =============================================================================
# TelemetryFlow PHP SDK - Development Dockerfile
# =============================================================================
#
# TelemetryFlow PHP SDK - AI-Powered Observability & Incident Response Management (IRM) Platform
# Copyright (c) 2024-2026 Telemetri Data Indonesia. All rights reserved.
#
# Full development image with all tooling: Composer, PHPStan, PHP-CS-Fixer,
# PHPUnit, Xdebug, and the SDK examples ready to run.
# =============================================================================
FROM php:8.2-alpine
ARG VERSION=1.0.0
LABEL org.opencontainers.image.title="TelemetryFlow PHP SDK (Dev)" \
org.opencontainers.image.description="Development image for the TelemetryFlow PHP SDK" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.vendor="TelemetryFlow" \
org.opencontainers.image.licenses="Apache-2.0"
# Install build deps + PHP extensions (including Xdebug for coverage/profiling)
RUN apk add --no-cache git make ca-certificates tzdata bash \
icu-dev libzip-dev oniguruma-dev autoconf gcc g++ \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& docker-php-ext-install -j$(nproc) opcache zip pcntl \
&& docker-php-ext-enable opcache
# Copy Composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
# Copy manifests first for caching
COPY composer.json ./
COPY packages/ ./packages/
RUN composer install --no-interaction --prefer-dist
COPY . .
RUN composer dump-autoload --optimize
# Symlink the generator
RUN ln -s /app/packages/generator/bin/telemetryflow-gen /usr/local/bin/telemetryflow-gen \
&& chmod +x /app/packages/generator/bin/telemetryflow-gen
ENTRYPOINT ["/usr/local/bin/telemetryflow-gen"]
CMD ["--help"]