-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 1.1 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
FROM alpine:3.21
ARG BUILD_DEV=0
# Install the manticore-executor binary
COPY . /src
RUN apk add bash && \
cd /src && \
./build-alpine 8.4.18 0 $BUILD_DEV && \
mv build/dist/bin/php /usr/bin/manticore-executor && \
ln -s /usr/bin/manticore-executor /usr/bin/php && \
cd ../..
# Add composer
RUN test "$BUILD_DEV" -eq 1 && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/bin/composer || true
WORKDIR /src
# Build on silicon chip mac:
# docker buildx build --build-arg BUILD_DEV=0 --platform linux/amd64,linux/arm64 -t manticoresearch/manticore-executor:0.6.9 --push .
# docker buildx build --build-arg BUILD_DEV=1 --platform linux/amd64,linux/arm64 -t manticoresearch/manticore-executor:0.6.9-dev --push .