mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 10:12:55 +00:00 
			
		
		
		
	Improve Dockerfile
This commit is contained in:
		@@ -7,7 +7,7 @@ RUN pip3 install Flask==1.0        \
 | 
				
			|||||||
                 git+https://github.com/avatao-content/tfwconnector.git#subdirectory=python3
 | 
					                 git+https://github.com/avatao-content/tfwconnector.git#subdirectory=python3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Define variables to use later
 | 
					# Define variables to use later
 | 
				
			||||||
ENV TFW_EHMAIN_DIR="/srv/.tfw_builtin_ehs"          \
 | 
					ENV TFW_EHMAIN_DIR="${TFW_DIR}/builtin_event_handlers" \
 | 
				
			||||||
    TFW_WEBSERVICE_DIR="/srv/webservice"               \
 | 
					    TFW_WEBSERVICE_DIR="/srv/webservice"               \
 | 
				
			||||||
    TFW_IDE_WD="/home/${AVATAO_USER}/workdir"          \
 | 
					    TFW_IDE_WD="/home/${AVATAO_USER}/workdir"          \
 | 
				
			||||||
    TFW_TERMINADO_WD="/home/${AVATAO_USER}/workdir"
 | 
					    TFW_TERMINADO_WD="/home/${AVATAO_USER}/workdir"
 | 
				
			||||||
@@ -26,7 +26,8 @@ RUN mkdir -p ${TFW_IDE_WD}                                               &&\
 | 
				
			|||||||
    chmod -R 755 "${TFW_IDE_WD}" "${TFW_WEBSERVICE_DIR}"
 | 
					    chmod -R 755 "${TFW_IDE_WD}" "${TFW_WEBSERVICE_DIR}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Hide TFW related code from user
 | 
					# Hide TFW related code from user
 | 
				
			||||||
RUN chown -R root:root ${TFW_SERVER_DIR} && chmod -R 700 ${TFW_SERVER_DIR}
 | 
					RUN chown -R root:root ${TFW_SERVER_DIR} ${TFW_DIR} &&\
 | 
				
			||||||
 | 
					    chmod -R 700 ${TFW_SERVER_DIR} ${TFW_DIR}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Make AVATAO_USER's home writeable and set it as WORKDIR
 | 
					# Make AVATAO_USER's home writeable and set it as WORKDIR
 | 
				
			||||||
# Make webservice directory writable
 | 
					# Make webservice directory writable
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user