Skip to content

Commit 8f4fc7f

Browse files
committed
Add build script
1 parent 44386ee commit 8f4fc7f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

build.dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Use the official Composer image as the base image
2+
FROM composer:2
3+
4+
# Install the BCMath extension
5+
RUN docker-php-ext-install bcmath
6+
7+
# build with: docker build -t aws-execfwd-build -f build.dockerfile .
8+
# Execute with: docker run --rm -it -e COMPOSER_PROCESS_TIMEOUT=0 -w $PWD -v $PWD:$PWD aws-execfwd-build build

build.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
DIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
4+
cd "$DIR"
5+
6+
docker build -t aws-execfwd-build -f build.dockerfile .
7+
docker run --rm -it -e COMPOSER_PROCESS_TIMEOUT=0 -w $PWD -v $PWD:$PWD aws-execfwd-build install
8+
docker run --rm -it -e COMPOSER_PROCESS_TIMEOUT=0 -w $PWD -v $PWD:$PWD aws-execfwd-build build

0 commit comments

Comments
 (0)