mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-10-31 04:32:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			640 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			640 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM node:lts-alpine AS build
 | |
| 
 | |
| WORKDIR /app/
 | |
| 
 | |
| RUN --mount=type=cache,target=/var/cache/apk \
 | |
|     apk add --no-cache \
 | |
|     curl
 | |
| 
 | |
| COPY . .
 | |
| 
 | |
| RUN corepack enable && corepack prepare pnpm@latest --activate
 | |
| 
 | |
| RUN --mount=type=cache,target=/root/.local/share/pnpm \
 | |
|     --mount=type=cache,target=/app/node_modules \
 | |
|     pnpm install --prefer-offline && \
 | |
|     pnpm build && ./localizefonts.sh
 | |
| 
 | |
| FROM nginxinc/nginx-unprivileged:alpine
 | |
| 
 | |
| COPY --chown=101:101 --from=build /app/dist/ /usr/share/nginx/html/
 | |
| 
 | |
| COPY --chown=101:101 docker/nginx.conf /etc/nginx/conf.d/default.conf
 | |
| 
 | |
| COPY docker/entrypoint.sh /entrypoint.sh
 | |
| 
 | |
| ENTRYPOINT [ "/entrypoint.sh" ]
 | 
