-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Laravel 5.8.5 Dockerfile and project files
- Loading branch information
Showing
6 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ghcr.io/labring-actions/devbox/php-8.2.20:73f430 | ||
|
||
RUN cd /home/sealos/project && \ | ||
rm -rf ./* | ||
|
||
USER sealos | ||
RUN /bin/bash -c "$(curl -fsSL https://php.new/install/linux)" | ||
|
||
|
||
USER root | ||
RUN /bin/bash -c "$(curl -fsSL https://php.new/install/linux)" | ||
|
||
USER sealos | ||
RUN cd /home/sealos && \ | ||
laravel new project -q | ||
COPY /Framework/laravel/5.8.5/project /home/sealos/project | ||
|
||
USER root | ||
RUN mkdir /root/.sealos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"recommendations": [ | ||
"pomdtr.excalidraw-editor", | ||
"editorconfig.editorconfig", | ||
"lokalise.i18n-ally", | ||
"devsense.phptools-vscode", | ||
"xdebug.php-debug", | ||
"bmewburn.vscode-intelephense-client" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
php artisan serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
DOCKERFILE=$1 | ||
echo "DOCKERFILE: $DOCKERFILE" | ||
TMP_DOCKERFILE="${DOCKERFILE}tmp" | ||
cp $DOCKERFILE $TMP_DOCKERFILE | ||
|
||
# 修正sed命令 | ||
sed -i '$i\ | ||
COPY /OS/debian-ssh/debian.sources /etc/apt/sources.list.d/debian.sources' "$TMP_DOCKERFILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ hexo=hexo | |
vert.x=vert.x | ||
nuxt=nuxt | ||
vitepress=VitePress | ||
laravel=laravel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ hexo=4000 | |
vert.x=8888 | ||
nuxt=3000 | ||
vitepress=5173 | ||
laravel=8000 |