From 341c1d2fa8d98a09a39bc2c9e6147905623cad0f Mon Sep 17 00:00:00 2001 From: u00lipp Date: Thu, 23 Oct 2025 10:28:00 +0200 Subject: [PATCH] fix: build --- Dockerfile | 6 +++++- docker-compose.yml | 10 ++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c59b8c..161a1d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 4baf450..2391196 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,6 @@ version: "3.9" services: app: - image: tap:latest # or build: . if you’re 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 \ No newline at end of file + - .env:/var/www/html/.env \ No newline at end of file