File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed
Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1+ # --- Composer Layer ---
2+ FROM composer:2 AS composer
3+
14# --- Build Layer ---
2- FROM php:8.2 -cli AS build
5+ FROM php:8.3 -cli-alpine AS build
36
47# Install dependencies for building PHAR
5- RUN apt-get update && \
6- apt-get install --no-install-recommends -y \
7- git \
8- unzip \
9- wget && \
10- rm -rf /var/lib/apt/lists/*
8+ RUN apk add --no-cache bash git wget
119
1210# Install Composer
13- COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
11+ COPY --from=composer /usr/bin/composer /usr/bin/composer
1412
1513WORKDIR /app
1614
@@ -27,7 +25,10 @@ RUN wget https://github.com/box-project/box/releases/download/4.5.1/box.phar -O
2725RUN ./scripts/phar_build.sh
2826
2927# --- Runtime Layer ---
30- FROM php:8.2-cli-alpine
28+ FROM php:8.3-cli-alpine
29+
30+ # Install Git, Unzip, and Wget dependencies
31+ RUN apk add --no-cache git openssh
3132
3233# Create a non-root user and group
3334RUN addgroup -S terminus && adduser -S terminus -G terminus
@@ -37,9 +38,6 @@ USER terminus
3738
3839WORKDIR /app
3940
40- # Copy Git
41- RUN apk add --no-cache git unzip wget
42-
4341# Copy Composer from build layer
4442COPY --from=build /usr/bin/composer /usr/bin/composer
4543
Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ The container can be run of 2 different ways:
9393
9494- Directly using ` docker ` (or ` podman ` , etc.):
9595
96- docker run -tv terminus:/root/.terminus terminus:latest art
96+ docker run -tv terminus:/root/.terminus terminus:latest self:info
9797
9898- Alternatively implement an alias in your local environment:
9999
100100 alias terminus="docker run -tv ~/.terminus:/root/.terminus terminus:latest"
101- terminus art
101+ terminus self:info
You can’t perform that action at this time.
0 commit comments