Merge branch 'gardenrobot/optimize-docker-build'
This commit is contained in:
		
						commit
						266e0a0082
					
				| 
						 | 
				
			
			@ -4,10 +4,13 @@ EXPOSE 8080
 | 
			
		|||
 | 
			
		||||
RUN apk --no-cache add libsass-dev pcre
 | 
			
		||||
 | 
			
		||||
COPY . /src/nitter
 | 
			
		||||
WORKDIR /src/nitter
 | 
			
		||||
 | 
			
		||||
RUN nimble build -y -d:danger -d:lto -d:strip \
 | 
			
		||||
COPY nitter.nimble .
 | 
			
		||||
RUN nimble install -y --depsOnly
 | 
			
		||||
 | 
			
		||||
COPY . .
 | 
			
		||||
RUN nimble build -d:danger -d:lto -d:strip \
 | 
			
		||||
    && nimble scss \
 | 
			
		||||
    && nimble md
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue