Dockerfile patch
This commit is contained in:
		
							
								
								
									
										32
									
								
								pelican-Dockerfile.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								pelican-Dockerfile.patch
									
									
									
									
									
										Normal file
									
								
							@@ -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 \
 | 
				
			||||||
		Reference in New Issue
	
	Block a user