Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Jul 31, 2024
1 parent 39ebf42 commit 3bc8c42
Show file tree
Hide file tree
Showing 9 changed files with 6,350 additions and 119 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
/public/bundles/
/var/
/vendor/
/composer.lock
/symfony.lock
###< symfony/framework-bundle ###

###> phpunit/phpunit ###
Expand Down
23 changes: 21 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,24 @@ RUN apt-get update && apt-get install -y \

RUN docker-php-ext-install mysqli pdo_mysql gd

RUN curl --silent --show-error https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer
COPY --from=composer:2.7 /usr/bin/composer /usr/bin/composer

WORKDIR /usr/share/nginx/chess-api

COPY composer.json composer.json

COPY composer.lock composer.lock

RUN composer install \
--no-interaction \
--no-plugins \
--no-scripts \
--no-dev \
--prefer-dist

# By default, Composer runs as root inside the container.
# This can lead to permission issues on your host filesystem.

RUN chown -R 1000:1000 /usr/share/nginx/chess-api/vendor

RUN chmod -R 775 /usr/share/nginx/chess-api/vendor
Loading

0 comments on commit 3bc8c42

Please sign in to comment.