Skip to content

Commit 8ba9deb

Browse files
committed
add entrypoint.sh in Dockerfile || edit README.md
1 parent 5831a81 commit 8ba9deb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Docker Nginx Laravel
22

3+
4+
35
<p align="center">
46
<a href="https://github.com/Muhammadislom">
57
<img src="https://skillicons.dev/icons?i=docker,nginx,laravel,mysql,postgresql,redis" />
@@ -8,6 +10,10 @@
810

911
### Run docker compose
1012

13+
```
14+
docker-compose run --rm --service-ports php-fpm
15+
```
16+
1117
```
1218
docker-compose -f docker-compose.yml up -d
1319
```

docker/php-fpm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ RUN mkdir -p /home/$user/.composer && \
3535
WORKDIR /app
3636

3737
USER $user
38-
38+
#CMD ["/bin/bash", "docker/php-fpm/entrypoint.sh"]
3939
#CMD ["php-fpm"]

docker/php-fpm/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
#!/bin/bash
1+
#!/bin/bash
2+
read -p "project name" name

0 commit comments

Comments
 (0)