fix: build

This commit is contained in:
u00lipp
2025-10-23 10:28:00 +02:00
parent 4ae6948b03
commit 341c1d2fa8
2 changed files with 7 additions and 9 deletions
+5 -1
View File
@@ -10,7 +10,7 @@
fi
# -------- 2) App source --------
FROM alpine:3.20 AS app_src
FROM alpine:3.22 AS app_src
WORKDIR /app
COPY . ./
@@ -88,6 +88,10 @@ php -r "unlink('composer-setup.php');"
RUN apk add --no-cache nodejs npm
RUN composer run setup
# Ensure the .env file is not copied into the image
# Add this line to explicitly remove the .env file if it exists
RUN rm -f /var/www/html/.env
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --retries=5 \
CMD curl -fsS http://localhost/healthz || exit 10
+2 -8
View File
@@ -2,7 +2,6 @@ version: "3.9"
services:
app:
image: tap:latest # or build: . if youre building locally
build:
context: .
dockerfile: Dockerfile
@@ -10,12 +9,7 @@ services:
restart: unless-stopped
ports:
- "81:8080" # host:container
environment:
# --- Laravel Core ---
APP_NAME: "Laravel"
- "81:80" # host:container
volumes:
# - SQLite database file
- ./database:/var/www/html/database
- .env:/var/www/html/.env