Add dex image
This commit is contained in:
		
							parent
							
								
									89f93ef142
								
							
						
					
					
						commit
						4852ef756e
					
				
					 1 changed files with 30 additions and 0 deletions
				
			
		
							
								
								
									
										30
									
								
								dex-images/tetris/Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								dex-images/tetris/Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
FROM haskell:8
 | 
			
		||||
 | 
			
		||||
ENV DEXBUILD_DIR="/build"
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p "${DEXBUILD_DIR}"
 | 
			
		||||
 | 
			
		||||
WORKDIR ${DEXBUILD_DIR}
 | 
			
		||||
 | 
			
		||||
RUN ( \
 | 
			
		||||
  git clone "https://github.com/samtay/tetris.git" && \
 | 
			
		||||
  cd tetris && \
 | 
			
		||||
  git checkout tags/0.1.0 && \
 | 
			
		||||
  rm -rf .git && \
 | 
			
		||||
  mkdir bin && \
 | 
			
		||||
  stack install --local-bin-path bin && \
 | 
			
		||||
  true )
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# container runtime configuration
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
ENTRYPOINT ["/build/tetris/bin/tetris"]
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# v1 dex-api
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
LABEL \
 | 
			
		||||
  org.dockerland.dex.api="v1" \
 | 
			
		||||
  org.dockerland.dex.docker_flags="--interactive --tty" \
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue