Update Dockerfile
This commit is contained in:
		
							parent
							
								
									ec86a55b48
								
							
						
					
					
						commit
						0a8cf7e161
					
				
					 3 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -69,4 +69,4 @@ jobs:
 | 
			
		|||
        - docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT
 | 
			
		||||
        - sleep 10
 | 
			
		||||
        - cd tests
 | 
			
		||||
        - pytest --headless -n 8 --reruns 10 --reruns-delay 2
 | 
			
		||||
        - pytest --headless -n 8 --reruns 3 --reruns-delay 2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,9 +11,9 @@ RUN apk update \
 | 
			
		|||
    && strip -s nitter \
 | 
			
		||||
    && nimble scss
 | 
			
		||||
 | 
			
		||||
FROM alpine
 | 
			
		||||
FROM redis:6.0.4-alpine
 | 
			
		||||
WORKDIR /src/
 | 
			
		||||
RUN apk --no-cache add pcre-dev sqlite-dev
 | 
			
		||||
COPY --from=nim /src/nitter/nitter /src/nitter/nitter.conf ./
 | 
			
		||||
COPY --from=nim /src/nitter/nitter /src/nitter/start.sh /src/nitter/nitter.conf ./
 | 
			
		||||
COPY --from=nim /src/nitter/public ./public
 | 
			
		||||
CMD redis-server & ./nitter
 | 
			
		||||
CMD ./start.sh
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								start.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								start.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
#!/usr/bin/env sh
 | 
			
		||||
 | 
			
		||||
nohup redis-server &
 | 
			
		||||
./nitter
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue