Skip to content

Commit

Permalink
created Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosun18 committed Nov 8, 2023
1 parent 808ff8f commit 33cdc51
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 1 deletion.
44 changes: 43 additions & 1 deletion .idea/php-project-9.iml

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

49 changes: 49 additions & 0 deletions .idea/php.xml

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

17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM php:8.1-cli


RUN apt-get update && apt-get install -y libzip-dev libpq-dev
RUN docker-php-ext-install zip pdo pdo_pgsql

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php');"

WORKDIR /app

COPY . .

RUN composer install

CMD ["bash", "-c", "make start"]

0 comments on commit 33cdc51

Please sign in to comment.