1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

use lockfile during docker build

This commit is contained in:
Robin Appelman 2020-11-28 15:34:37 +01:00
commit 05b6a60caa

View file

@ -9,7 +9,7 @@ RUN cargo build --release --target=x86_64-unknown-linux-musl
FROM icewind1991/php-alpine-apcu FROM icewind1991/php-alpine-apcu
COPY --from=build /root/build/parser/target/x86_64-unknown-linux-musl/release/parse_demo /app/parse_demo COPY --from=build /root/build/parser/target/x86_64-unknown-linux-musl/release/parse_demo /app/parse_demo
COPY composer.json /app COPY composer.json composer.lock /app/
RUN wget https://getcomposer.org/composer.phar \ RUN wget https://getcomposer.org/composer.phar \
&& php composer.phar --working-dir=/app install --no-dev --no-interaction --ignore-platform-reqs \ && php composer.phar --working-dir=/app install --no-dev --no-interaction --ignore-platform-reqs \