Skip to content

Commit

Permalink
Updating base image
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaheidi committed Oct 7, 2022
1 parent 7bfd006 commit ba16883
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
22 changes: 7 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
FROM php:8.0-cli
FROM minicli/php81-dev:latest AS builder

RUN apt-get update && apt-get install -y \
git \
curl \
libxml2-dev \
zip \
unzip
COPY . /home/minicli/
RUN cd /home/minicli && \
composer install --no-progress --no-dev --prefer-dist

RUN apt-get clean && rm -rf /var/lib/apt/lists/*
FROM minicli/php81:latest
COPY --from=builder /home/minicli /home/minicli

# Install Composer and set up application
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN mkdir /application
COPY . /application/
RUN cd /application && composer install

ENTRYPOINT [ "php", "/application/minicli" ]
ENTRYPOINT [ "php81", "/home/minicli/minicli" ]
CMD ["update-contributors"]
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ba16883

Please sign in to comment.