Fix deployment script permissions

Ensure Docker Compose package scripts keep executable permissions and make the frontend certificate entrypoint executable in the image.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
funnywolf
2026-06-28 22:00:56 +08:00
co-authored by Copilot
parent 807d38b5dc
commit c696ecba3f
8 changed files with 2 additions and 0 deletions
View File
View File
View File
View File
View File
+1
View File
@@ -59,6 +59,7 @@ rm -rf "$staging"
mkdir -p "$dist_dir"
cp -a "$source_dir" "$staging"
rm -f "$staging/.env"
chmod +x "$staging"/scripts/*.sh
env_example="$staging/.env.example"
if [ -n "$backend_image" ]; then
+1
View File
@@ -16,6 +16,7 @@ RUN apk add --no-cache openssl
COPY nginx.conf.template /etc/nginx/templates/default.conf.template
COPY docker-entrypoint.d/10-ensure-cert.sh /docker-entrypoint.d/10-ensure-cert.sh
RUN chmod +x /docker-entrypoint.d/10-ensure-cert.sh
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 443
View File