test
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
13
Dockerfile
13
Dockerfile
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user