From 583c1839c11814664b06ed49e88e9f8e72a373a5 Mon Sep 17 00:00:00 2001 From: Showdown76 Date: Sun, 14 Apr 2024 23:00:45 +0000 Subject: [PATCH] Dockerfile patch --- pelican-Dockerfile.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pelican-Dockerfile.patch diff --git a/pelican-Dockerfile.patch b/pelican-Dockerfile.patch new file mode 100644 index 0000000..5661f45 --- /dev/null +++ b/pelican-Dockerfile.patch @@ -0,0 +1,32 @@ +diff --git a/Dockerfile b/Dockerfile +index 95d0fefe..5ab7e654 100644 +--- a/Dockerfile ++++ b/Dockerfile +@@ -2,7 +2,8 @@ + # Build the assets that are needed for the frontend. This build stage is then discarded + # since we won't need NodeJS anymore in the future. This Docker image ships a final production + # level distribution +-FROM --platform=$TARGETOS/$TARGETARCH mhart/alpine-node:14 ++FROM --platform=$TARGETOS/$TARGETARCH node:lts-alpine3.19 ++ + WORKDIR /app + COPY . ./ + RUN yarn install --frozen-lockfile \ +@@ -10,13 +11,15 @@ RUN yarn install --frozen-lockfile \ + + # Stage 1: + # Build the actual container with all of the needed PHP dependencies that will run the application. +-FROM --platform=$TARGETOS/$TARGETARCH php:8.1-fpm-alpine ++FROM --platform=$TARGETOS/$TARGETARCH php:8.2-fpm-alpine + WORKDIR /app + COPY . ./ + COPY --from=0 /app/public/assets ./public/assets +-RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar unzip nginx libpng-dev libxml2-dev libzip-dev certbot certbot-nginx \ ++RUN apk add --no-cache --update icu-dev ca-certificates dcron curl git supervisor tar unzip nginx libpng-dev libxml2-dev libzip-dev certbot certbot-nginx \ + && docker-php-ext-configure zip \ + && docker-php-ext-install bcmath gd pdo_mysql zip \ ++ && docker-php-ext-configure intl \ ++ && docker-php-ext-install intl \ + && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ + && cp .env.example .env \ + && mkdir -p bootstrap/cache/ storage/logs storage/framework/sessions storage/framework/views storage/framework/cache \