You've already forked nyx
							
							
				mirror of
				https://github.com/rls-moe/nyx
				synced 2025-11-03 12:04:14 +00:00 
			
		
		
		
	fixed board server not being on right user and working directory
it didn't load the config file because of that
This commit is contained in:
		
							
								
								
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -23,14 +23,11 @@ RUN groupadd \
 | 
				
			|||||||
    --shell /bin/bash \
 | 
					    --shell /bin/bash \
 | 
				
			||||||
    nyx
 | 
					    nyx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV USER nyx
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
CMD [ "/usr/local/bin/nyx" ]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
COPY --from=build-env /go/bin/nyx /opt/nyx/nyx
 | 
					COPY --from=build-env /go/bin/nyx /opt/nyx/nyx
 | 
				
			||||||
COPY --from=build-env /go/src/github.com/rls-moe/nyx/config.example.yml /opt/nyx/config.yml
 | 
					COPY --from=build-env /go/src/github.com/rls-moe/nyx/config.example.yml /opt/nyx/config.yml
 | 
				
			||||||
RUN ln -s \
 | 
					RUN chown -R \
 | 
				
			||||||
    /opt/nyx/nyx \
 | 
					 | 
				
			||||||
    /usr/local/bin/nyx && \
 | 
					 | 
				
			||||||
    chown -R \
 | 
					 | 
				
			||||||
    nyx:nyx /opt/nyx
 | 
					    nyx:nyx /opt/nyx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					WORKDIR /opt/nyx
 | 
				
			||||||
 | 
					USER nyx
 | 
				
			||||||
 | 
					CMD [ "/opt/nyx/nyx" ]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user