1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 09:54:17 +02:00

get parser binary from github

This commit is contained in:
Robin Appelman 2022-01-23 14:41:46 +01:00
commit 524e4984a0

View file

@ -1,18 +1,11 @@
FROM registry.gitlab.com/rust_musl_docker/image:stable-latest AS build
ENV PARSER_VERSION c2fe8ec
WORKDIR /root/build
RUN git clone https://github.com/demostf/parser
WORKDIR /root/build/parser
RUN git checkout $PARSER_VERSION
RUN cargo build --release --target=x86_64-unknown-linux-musl
FROM icewind1991/php-alpine-apcu
COPY --from=build /root/build/parser/target/x86_64-unknown-linux-musl/release/parse_demo /app/parse_demo
RUN wget -q https://github.com/demostf/parser/releases/download/v0.3.3/parse_demo -O /app/parse_demo && \
chmod +x /app/parse_demo
COPY composer.json composer.lock /app/
RUN apk add --no-cache git \
&& wget https://getcomposer.org/composer.phar \
&& wget -q https://getcomposer.org/composer.phar \
&& php composer.phar --working-dir=/app install --no-dev --no-interaction --ignore-platform-reqs \
&& rm composer.phar \
&& apk del git