Skip to content

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 c78561e commit 1785ffa
Show file tree
Hide file tree
Showing 6 changed files with 4,270 additions and 35 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@
### misc
/site/
/assets/env.js
/composer.lock
/symfony.lock
.env
22 changes: 20 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,23 @@ RUN apt-get update && apt-get install -y \
unzip \
zip

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/website

COPY composer.json composer.json

COPY composer.lock composer.lock

ENV COMPOSER_ALLOW_SUPERUSER=1

RUN composer install \
--no-interaction \
--no-scripts

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

RUN chown -R 1000:1000 vendor

RUN chmod -R 775 vendor
Loading

0 comments on commit 1785ffa

Please sign in to comment.