File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tensorflow_quantum/core/ops Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -86,4 +86,9 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 PIP_ROOT_USER_ACTION=ignore && \
8686# Clean up before finishing.
8787RUN apt-get clean
8888
89+ # Create a non-root user and switch to it.
90+ RUN useradd -m -s /bin/bash tfq-user
91+ USER tfq-user
92+ WORKDIR /home/tfq-user
93+
8994CMD ["/bin/bash" ]
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def _load(self):
4747 try :
4848 path = resource_loader .get_path_to_datafile (self ._name )
4949 self ._module = load_library .load_op_library (path )
50- except :
50+ except Exception : # pylint: disable=broad-except
5151 path = os .path .join (get_python_lib (),
5252 "tensorflow_quantum/core/ops" , self ._name )
5353 self ._module = load_library .load_op_library (path )
You can’t perform that action at this time.
0 commit comments