Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
|
74cc9d7436 | |
|
a160159f1f | |
|
31fc538f0f | |
|
6b9d9e604e | |
|
4d94b3cbdb | |
|
2355a1a4dd |
|
@ -19,13 +19,8 @@ jobs:
|
||||||
|
|
||||||
- name: Replace Debian APT sources
|
- name: Replace Debian APT sources
|
||||||
run: |
|
run: |
|
||||||
tee /etc/apt/sources.list <<EOF
|
sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \
|
||||||
# 清华大学 Debian 11 Bullseye 镜像
|
&& sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
|
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
|
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
|
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- name: Install SSH tools
|
- name: Install SSH tools
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -16,8 +16,8 @@ RUN curl -sS https://getcomposer.org/installer | php -- \
|
||||||
--filename=composer
|
--filename=composer
|
||||||
|
|
||||||
# 创建非 root 用户(推荐与宿主机用户 UID/GID 一致)
|
# 创建非 root 用户(推荐与宿主机用户 UID/GID 一致)
|
||||||
ARG USER_ID=1003 # 宿主机 deploy-user 的 UID
|
ARG USER_ID=1001 # 宿主机 deploy-user 的 UID
|
||||||
ARG GROUP_ID=1003 # 宿主机 deploy-user 的 GID
|
ARG GROUP_ID=1001 # 宿主机 deploy-user 的 GID
|
||||||
RUN groupadd -g ${GROUP_ID} appuser \
|
RUN groupadd -g ${GROUP_ID} appuser \
|
||||||
&& useradd -u ${USER_ID} -g appuser -m -d /home/appuser -s /bin/bash appuser
|
&& useradd -u ${USER_ID} -g appuser -m -d /home/appuser -s /bin/bash appuser
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,5 @@ Route::middleware('auth:api')->get('/user', function (Request $request) {
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/test', function () {
|
Route::get('/test', function () {
|
||||||
return ["msg" => "success", "data" => [], "status" => 0];
|
return ["msg" => "success", "data" => [], "status" => 200];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue