mirror of
				https://github.com/monkeytypegame/monkeytype.git
				synced 2025-11-04 09:06:17 +08:00 
			
		
		
		
	* pnpm * v4, pnpm lock * checkout, node setup * cache dir * path, name * store path * name * setup pnpm, get store then check cache * unnecessary if * missing dependencies * fix docker * lock file name * remove prop * wip * fix * reduce image sizes * save exact * correct command * lock --------- Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			603 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			603 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: monkeytype
 | 
						|
services:
 | 
						|
  frontend:
 | 
						|
    container_name: monkeytype-frontend
 | 
						|
    image: node:20.16.0
 | 
						|
    user: "node"    ##this works as long as your local user has uid=1000
 | 
						|
    # restart: on-failure
 | 
						|
    environment:
 | 
						|
      - SERVER_OPEN=false
 | 
						|
      - BACKEND_URL=http://localhost:${DOCKER_SERVER_PORT:-5005}
 | 
						|
    ports:
 | 
						|
      - "${DOCKER_HTTP_PORT:-3000}:3000"
 | 
						|
    volumes:
 | 
						|
      - ../../:/monkeytype
 | 
						|
    entrypoint: 'bash -c "echo starting, this may take a while... \
 | 
						|
      && cd /monkeytype \
 | 
						|
      && npm i -g pnpm \
 | 
						|
      && pnpm i \
 | 
						|
      && export SERVER_OPEN=false \
 | 
						|
      && npm run dev-fe"'
 | 
						|
 | 
						|
 |