Skip to content

Commit 8235759

Browse files
committed
use entrypoint
1 parent 0fd0bb3 commit 8235759

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ RUN pecl install mongodb && \
1616
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
1717
echo "phar.readonly=Off" > "$PHP_INI_DIR/conf.d/phar.ini"
1818
RUN cp -r /usr/src/Frontend/dist/* ./src/public && \
19-
php compile.php
19+
php ./compile.php
2020

21-
CMD [ "php", "./aoiawd.phar" ]
21+
ENTRYPOINT [ "php", "./aoiawd.phar" ]

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
depends_on:
99
- mongodb
1010
restart: always
11-
command: php ./aoiawd.phar -m mongodb://mongodb:27017
11+
command: -m mongodb://mongodb:27017
1212
ports:
1313
- 1337:1337
1414
- 8023:8023

0 commit comments

Comments
 (0)