thinhvv commited on
Commit
30381d9
·
verified ·
1 Parent(s): 3bbf161

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -129,11 +129,11 @@ RUN if [ ! -d "/usr/local/lib/python3.10/site-packages/portfolio_stats" ] && [ -
129
  # Log installed packages for debugging.
130
  RUN pip freeze > /tmp/pip_freeze.txt && echo "Installed packages:" && cat /tmp/pip_freeze.txt
131
 
132
- # Switch to a non-root user and adjust the PATH.
133
- RUN useradd -m -u 1000 user
134
- USER user
135
- ENV HOME /home/user
136
- ENV PATH $HOME/.local/bin:$PATH
137
 
138
  # Debug: List contents of /usr/src/app to verify that st_app.py and other files are present.
139
  RUN echo "Contents of /usr/src/app:" && ls -la /usr/src/app
 
129
  # Log installed packages for debugging.
130
  RUN pip freeze > /tmp/pip_freeze.txt && echo "Installed packages:" && cat /tmp/pip_freeze.txt
131
 
132
+ # (Removed non-root user creation so the app runs as root)
133
+ # RUN useradd -m -u 1000 user
134
+ # USER user
135
+ # ENV HOME /home/user
136
+ # ENV PATH $HOME/.local/bin:$PATH
137
 
138
  # Debug: List contents of /usr/src/app to verify that st_app.py and other files are present.
139
  RUN echo "Contents of /usr/src/app:" && ls -la /usr/src/app