Skip to content

Commit 3cb206c

Browse files
authored
Merge pull request #56 from xibosignage/develop
Attempt to fix PHAR generation during build.
2 parents 3c13c88 + f237fe6 commit 3cb206c

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN composer install --no-interaction --no-dev --ignore-platform-reqs --optimize
44

55
# Build the PHAR file
66
RUN echo 'phar.readonly = Off' > /usr/local/etc/php/php.ini;
7-
RUN curl -LSs https://github.com/box-project/box/releases/download/4.2.0/box.phar -o box.phar; php box.phar compile; rm box.phar
7+
RUN curl -LSs https://github.com/box-project/box/releases/download/4.6.10/box.phar -o box.phar; php box.phar compile; rm box.phar
88

99
FROM php:8.2-cli
1010
LABEL org.opencontainers.image.authors="Xibo Signage Ltd <info@xibosignage.com>"

build.sh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
2+
#
3+
# Copyright (C) 2026 Xibo Signage Ltd
4+
#
5+
# Xibo - Digital Signage - https://xibosignage.com
6+
#
7+
# This file is part of Xibo.
8+
#
9+
# Xibo is free software: you can redistribute it and/or modify
10+
# it under the terms of the GNU Affero General Public License as published by
11+
# the Free Software Foundation, either version 3 of the License, or
12+
# any later version.
13+
#
14+
# Xibo is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU Affero General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU Affero General Public License
20+
# along with Xibo. If not, see <http://www.gnu.org/licenses/>.
21+
#
22+
223
docker run --rm --name xmr-build \
324
-v "$PWD":/usr/src/myapp \
425
-w /usr/src/myapp composer \
5-
/bin/bash -c "echo 'phar.readonly = Off' > /usr/local/etc/php/php.ini; curl -LSs https://github.com/box-project/box/releases/download/4.2.0/box.phar -o box.phar; php box.phar compile; rm box.phar"
26+
/bin/bash -c "echo 'phar.readonly = Off' > /usr/local/etc/php/php.ini; curl -LSs https://github.com/box-project/box/releases/download/4.6.10/box.phar -o box.phar; php box.phar compile; rm box.phar"

0 commit comments

Comments
 (0)