Skip to content

Commit

Permalink
feat: Add Laravel 5.8.5 Dockerfile and project files
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Oct 14, 2024
1 parent 40c5f0e commit f1a43f1
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Framework/laravel/5.8.5/Dockerfile
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
10 changes: 10 additions & 0 deletions Framework/laravel/5.8.5/project/.vscode/extensions.json
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"
]
}
2 changes: 2 additions & 0 deletions Framework/laravel/5.8.5/project/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
php artisan serve
10 changes: 10 additions & 0 deletions Framework/laravel/update_cn_dockerfile.sh
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"
1 change: 1 addition & 0 deletions configs/name.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ hexo=hexo
vert.x=vert.x
nuxt=nuxt
vitepress=VitePress
laravel=laravel
1 change: 1 addition & 0 deletions configs/port.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ hexo=4000
vert.x=8888
nuxt=3000
vitepress=5173
laravel=8000

0 comments on commit f1a43f1

Please sign in to comment.