[bugfix] updated ownership setting in Dockerfile
This commit is contained in:
		
							parent
							
								
									080e73c1db
								
							
						
					
					
						commit
						d7c1072e7b
					
				| @ -18,20 +18,23 @@ WORKDIR /usr/src/app | |||||||
| RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \ | RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \ | ||||||
|     pip install --no-cache-dir --requirement /tmp/requirements.txt |     pip install --no-cache-dir --requirement /tmp/requirements.txt | ||||||
| 
 | 
 | ||||||
|  | # change ownership of working directory | ||||||
|  | RUN chown -R survBot:survBot /usr/src/app | ||||||
|  | 
 | ||||||
| # switch to user survBot | # switch to user survBot | ||||||
| USER survBot | USER survBot | ||||||
| 
 | 
 | ||||||
| # copy application files | # copy application files | ||||||
| COPY survBot.py utils.py write_utils.py LICENSE README.md ./ | COPY --chown=survBot:survBot survBot.py utils.py write_utils.py LICENSE README.md ./ | ||||||
| 
 | 
 | ||||||
| # copy configuration files | # copy configuration files | ||||||
| VOLUME /usr/src/app/conf | VOLUME /usr/src/app/conf | ||||||
| COPY parameters.yaml mailing_list.yaml simulate_fail.json conf/ | COPY --chown=survBot:survBot parameters.yaml mailing_list.yam[l] simulate_fail.jso[n] conf/ | ||||||
| RUN ln -s conf/simulate_fail.json simulate_fail.json | RUN ln -s conf/simulate_fail.json simulate_fail.json | ||||||
| 
 | 
 | ||||||
| # copy www files | # copy www files | ||||||
| VOLUME /usr/src/app/www | VOLUME /usr/src/app/www | ||||||
| COPY logo.png stylesheets/desktop.css stylesheets/mobile.css www/ | COPY --chown=survBot:survBot logo.pn[g] stylesheets/desktop.css stylesheets/mobile.css www/ | ||||||
| RUN ln -s www/index.html survBot_out.html | RUN ln -s www/index.html survBot_out.html | ||||||
| 
 | 
 | ||||||
| # run the application | # run the application | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user