Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Stage 1: Composer
FROM composer:2.0 as composer

ARG TESTING=false
Expand All @@ -15,11 +16,17 @@ RUN composer install \
--no-scripts \
--prefer-dist

# Stage 2: PHP
FROM php:8.0-cli-alpine

WORKDIR /usr/local/src/

COPY --from=composer /usr/local/src/vendor /usr/local/src/vendor
COPY . /usr/local/src/

CMD [ "tail", "-f", "/dev/null" ]
# Install PHPUnit
RUN wget -O phpunit https://phar.phpunit.de/phpunit-9.phar && \
chmod +x phpunit && \
mv phpunit /usr/local/bin/phpunit
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There shouldn't be any need to add this.


CMD [ "tail", "-f", "/dev/null" ]
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"autoload": {
"psr-4": {
"Utopia\\Messaging\\": "src/Utopia/Messaging"
"Utopia\\Messaging\\": "src/Utopia/Messaging/"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed? We don't have a trailing slash for other libraries 🧐

}
},
"autoload-dev": {
Expand All @@ -26,8 +26,8 @@
"ext-curl": "*"
},
"require-dev": {
"phpunit/phpunit": "9.6.*",
"phpmailer/phpmailer": "6.8.*",
"phpunit/phpunit": "^9.6",
"phpmailer/phpmailer": "^6.8",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this back to using wildcards. Eventually, we want to use wildcards for everything for clarity.

"laravel/pint": "^1.2"
},
"config": {
Expand Down
Loading