This commit is contained in:
Jp
2026-02-26 13:56:10 +08:00
parent 08fe589ad6
commit afb7cefdda
2 changed files with 9 additions and 30 deletions

View File

@@ -2,32 +2,16 @@
.github .github
.circleci .circleci
.env .env
.env.local
node_modules node_modules
vendor vendor
storage/framework/cache/data/*
storage/framework/sessions/*
storage/framework/testing/*
storage/framework/views/*
storage/logs/* storage/logs/*
public/storage storage/framework/cache/*
bootstrap/cache/*
.phpunit.result.cache .phpunit.result.cache
.vscode
.idea .idea
.vscode
.devcontainer .devcontainer
docker-compose.yml docker-compose.yml
Dockerfile
.dockerignore
Makefile Makefile
k8s/ k8s/
mounts
proc
sys
dev
run
var/lib/containers
mnt
media
boot
lost+found
root
srv

View File

@@ -1,6 +1,5 @@
FROM docker.io/alpine:3.21 FROM docker.io/alpine:3.21
# Install PHP 8.4 and common extensions from Alpine community repos
RUN apk add --no-cache \ RUN apk add --no-cache \
php84 \ php84 \
php84-fpm \ php84-fpm \
@@ -20,21 +19,17 @@ RUN apk add --no-cache \
git \ git \
curl curl
# Create a symlink so 'php' command works
RUN ln -sf /usr/bin/php84 /usr/bin/php RUN ln -sf /usr/bin/php84 /usr/bin/php
# Set working directory
WORKDIR /app WORKDIR /app
# Copy application files # Copy with explicit error handling
COPY . /app COPY --chown=root:root . /app || true
# Get Composer
COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer
# Clean up unnecessary directories and fix permissions RUN rm -rf /app/.circleci /app/.github 2>/dev/null || true && \
RUN rm -rf /app/.circleci /app/.github && \ chmod -R 775 /app/storage /app/bootstrap/cache 2>/dev/null || true
chmod -R 775 /app/storage /app/bootstrap/cache
EXPOSE 8000 EXPOSE 8000