-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Only use a production installation of the plugin when using within WordPress to have tests of compose changes. * Rename files for consistency. * Tag the PHP image and name the container to avoid nameless resources, also make sure the image is deleted after each run.
- Loading branch information
Showing
5 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# Container with PHP + Composer | ||
# syntax=docker/dockerfile:1.7-labs | ||
FROM php:7.4-cli | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install git unzip libzip-dev | ||
RUN docker-php-ext-install zip | ||
|
||
COPY . /opt/odoo_conn | ||
COPY --exclude=vendor/ . /opt/odoo_conn | ||
WORKDIR /opt/odoo_conn | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
# no-cache because the container fails to create directories when cloning | ||
# from git eg: | ||
# could not create leading directories of | ||
# '/.composer/cache/vcs/https ---github.com-bovigo-vfsStream.git' | ||
RUN composer install --no-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.