12 lines
		
	
	
		
			290 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			290 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM node:15.4.0-alpine3.12
 | 
						|
WORKDIR /app
 | 
						|
RUN npm i -g pnpm
 | 
						|
COPY package.json index.html ./
 | 
						|
RUN pnpm i
 | 
						|
COPY src ./src
 | 
						|
COPY public ./public
 | 
						|
RUN pnpm run build
 | 
						|
# final image
 | 
						|
FROM fholzer/nginx-brotli:v1.19.1
 | 
						|
COPY --from=0 /app/dist /usr/share/nginx/html
 | 
						|
COPY ./nginx.conf /etc/nginx/nginx.conf |