 257b81d0b9
			
		
	
	
		257b81d0b9
		
	
	
	
	
		
			
			BREAKING CHANGE: this new docker image no longer clones this repository. Some manual steps are required * chore!: update docker scripts * chore: fix paths in docker scripts * chore: add config docker compose
		
			
				
	
	
		
			22 lines
		
	
	
		
			589 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			589 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM node:alpine
 | |
| 
 | |
| # env vars
 | |
| ENV HTTP_PORT=3001
 | |
| ENV WS_PORT=3002
 | |
| ENV CDN_PORT=3003
 | |
| ENV RTC_PORT=3004
 | |
| ENV ADMIN_PORT=3005
 | |
| 
 | |
| # exposed ports (only for reference, see https://docs.docker.com/engine/reference/builder/#expose)
 | |
| EXPOSE ${HTTP_PORT}/tcp ${WS_PORT}/tcp ${CDN_PORT}/tcp ${RTC_PORT}/tcp ${ADMIN_PORT}/tcp
 | |
| 
 | |
| # install required apps
 | |
| RUN apk add --no-cache --update git python3 py-pip make build-base
 | |
| RUN ln -s /usr/bin/python3 /usr/bin/python
 | |
| 
 | |
| # Run as non-root user
 | |
| # RUN adduser -D fosscord
 | |
| # USER fosscord
 | |
| 
 | |
| WORKDIR /srv/fosscord-server/bundle
 | |
| ENTRYPOINT ["npm", "run", "start:bundle"] |