fix container build
- install npm & postcss-cli in docker image - match container build and non-container build hugo command
This commit is contained in:
		
							parent
							
								
									b647c7b5f5
								
							
						
					
					
						commit
						d6b3322ad0
					
				| 
						 | 
				
			
			@ -14,7 +14,9 @@ RUN apk add --no-cache \
 | 
			
		|||
    openssh-client \
 | 
			
		||||
    rsync \
 | 
			
		||||
    build-base \
 | 
			
		||||
    libc6-compat
 | 
			
		||||
    libc6-compat \
 | 
			
		||||
    npm && \
 | 
			
		||||
    npm install -G autoprefixer postcss-cli
 | 
			
		||||
 | 
			
		||||
ARG HUGO_VERSION
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										2
									
								
								Makefile
								
								
								
								
							| 
						 | 
				
			
			@ -64,7 +64,7 @@ container-image:
 | 
			
		|||
		--build-arg HUGO_VERSION=$(HUGO_VERSION)
 | 
			
		||||
 | 
			
		||||
container-build: module-check
 | 
			
		||||
	$(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo
 | 
			
		||||
	$(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo --minify
 | 
			
		||||
 | 
			
		||||
container-serve: module-check
 | 
			
		||||
	$(CONTAINER_RUN) --mount type=tmpfs,destination=/src/resources,tmpfs-mode=0755 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue