mirror of
https://github.com/demostf/backup.git
synced 2026-06-03 22:14:08 +02:00
composer install in docker image
This commit is contained in:
parent
7a3b8dcb8d
commit
a87180d2d7
1 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,11 @@
|
|||
FROM php:7.1-alpine
|
||||
|
||||
COPY . /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
RUN apk add --no-cache wget
|
||||
|
||||
COPY . /app
|
||||
RUN wget https://getcomposer.org/composer.phar \
|
||||
&& php composer.phar -d=/app install --no-dev --no-interaction \
|
||||
&& rm composer.phar
|
||||
WORKDIR /app
|
||||
|
||||
CMD [ "php", "./backup.php" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue