mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-11-04 06:31:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			417 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			417 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM node:lts-alpine AS build
 | 
						|
 | 
						|
WORKDIR /app/
 | 
						|
 | 
						|
COPY . .
 | 
						|
 | 
						|
RUN --mount=type=cache,target=/root/.cache/yarn \
 | 
						|
    --mount=type=cache,target=/app/node_modules \
 | 
						|
    yarn install --prefer-offline && \
 | 
						|
    yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css
 | 
						|
 | 
						|
FROM nginx:alpine
 | 
						|
 | 
						|
COPY --from=build /app/dist/ /usr/share/nginx/html/
 | 
						|
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
 | 
						|
 | 
						|
EXPOSE 80
 |