Skip to content

Commit 6c0c29a

Browse files
committed
Dockerfile with gpac builder step
1 parent e903422 commit 6c0c29a

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

jccp/Dockerfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1-
FROM dunglas/frankenphp
1+
FROM dunglas/frankenphp AS base
22

33
RUN apt-get update && apt install -y openjdk-21-jre-headless
44

5+
56
RUN install-php-extensions \
67
pcntl
78

9+
FROM base AS builder
10+
11+
RUN apt-get update && apt install -y build-essential pkg-config g++ git cmake yasm
12+
13+
RUN cd / && git clone https://github.com/gpac/gpac.git
14+
15+
RUN apt-get update && apt install -y zlib1g-dev
16+
RUN cd /gpac && ./configure && make
17+
18+
19+
FROM base AS jccp
20+
21+
COPY --from=builder /gpac/bin/gcc/* /usr/bin/
22+
23+
824
ENV SERVER_NAME=:80
925
COPY . /app
1026

jccp/compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
frankenphp:
44
build:
55
context: .
6+
target: jccp
67
entrypoint: php artisan octane:frankenphp --workers=1 --max-requests=1
78
ports:
89
- "8000:8000"

0 commit comments

Comments
 (0)