Skip to content

Commit

Permalink
Updating Dockerfile to use minicli images
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaheidi committed Oct 7, 2022
1 parent 811ce68 commit eb7a632
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM erikaheidi/minicli:php81

# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

# Checkout Dynacover
FROM minicli/php81-dev:latest AS builder
WORKDIR /home/minicli
RUN git clone -b 1.0.1 --depth 1 https://github.com/erikaheidi/dynacover.git && \
cd dynacover && \
composer install --no-progress --no-dev --prefer-dist

ENTRYPOINT [ "php81", "/dynacover/dynacover" ]
FROM minicli/php81:latest
COPY --from=builder /home/minicli/dynacover /home/minicli

ENTRYPOINT [ "php81", "/home/minicli/dynacover" ]
CMD ["cover", "update"]

0 comments on commit eb7a632

Please sign in to comment.