Update dex build to use binary from arch instead of build from source
This commit is contained in:
		
							parent
							
								
									c6edbe7602
								
							
						
					
					
						commit
						5d9c74cc0c
					
				
					 1 changed files with 5 additions and 9 deletions
				
			
		| 
						 | 
					@ -1,25 +1,21 @@
 | 
				
			||||||
FROM haskell:8
 | 
					FROM base/archlinux
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV DEXBUILD_DIR="/build"
 | 
					ENV DEXBUILD_DIR="/bin"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN mkdir -p "${DEXBUILD_DIR}"
 | 
					RUN mkdir -p "${DEXBUILD_DIR}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR ${DEXBUILD_DIR}
 | 
					WORKDIR ${DEXBUILD_DIR}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN ( \
 | 
					RUN ( \
 | 
				
			||||||
  git clone "https://github.com/samtay/tetris.git" && \
 | 
					  curl -L https://github.com/samtay/tetris/releases/download/0.1.0/tetris-`uname -s`-`uname -m` -o tetris && \
 | 
				
			||||||
  cd tetris && \
 | 
					  chmod +x tetris && \
 | 
				
			||||||
  git checkout tags/0.1.0 && \
 | 
					 | 
				
			||||||
  rm -rf .git && \
 | 
					 | 
				
			||||||
  mkdir bin && \
 | 
					 | 
				
			||||||
  stack install --local-bin-path bin && \
 | 
					 | 
				
			||||||
  true )
 | 
					  true )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# container runtime configuration
 | 
					# container runtime configuration
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENTRYPOINT ["/build/tetris/bin/tetris"]
 | 
					ENTRYPOINT ["/bin/tetris"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# v1 dex-api
 | 
					# v1 dex-api
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue