Spaces:
Sleeping
Sleeping
GitHub Actions commited on
Commit ·
adab839
1
Parent(s): c21f58e
deploy: sync from GitHub 7482a2bc0541f885d455f63e1b2774305c3e20f5
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -12,8 +12,11 @@ RUN useradd -m -u 1000 user
|
|
| 12 |
USER user
|
| 13 |
|
| 14 |
# Set home to user's home dir and add local bin to PATH
|
|
|
|
|
|
|
| 15 |
ENV HOME=/home/user \
|
| 16 |
-
PATH=/home/user/.local/bin:$PATH
|
|
|
|
| 17 |
|
| 18 |
# Set the working directory in the container
|
| 19 |
WORKDIR $HOME/app
|
|
|
|
| 12 |
USER user
|
| 13 |
|
| 14 |
# Set home to user's home dir and add local bin to PATH
|
| 15 |
+
# PYTHONPATH is set explicitly so packages are found even when HOME is overridden
|
| 16 |
+
# (e.g. by Apptainer --cleanenv, which resets HOME to the host user's home)
|
| 17 |
ENV HOME=/home/user \
|
| 18 |
+
PATH=/home/user/.local/bin:$PATH \
|
| 19 |
+
PYTHONPATH=/home/user/.local/lib/python3.12/site-packages
|
| 20 |
|
| 21 |
# Set the working directory in the container
|
| 22 |
WORKDIR $HOME/app
|