mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
get parser binary from github
This commit is contained in:
parent
9c61c483fb
commit
524e4984a0
1 changed files with 3 additions and 10 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue