Update Dockerfile
Browse files- 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 |
-
#
|
| 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
|