Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -1
Dockerfile
CHANGED
@@ -21,6 +21,19 @@ RUN SITE_PKG=`pip3 show nnunet | grep "Location:" | awk '{print $2}'` && \
|
|
21 |
mv /tmp/nnUNetTrainerV2_Loss_FL_and_CE.py "$SITE_PKG/nnunet/training/network_training/nnUNetTrainerV2_Loss_FL_and_CE.py"
|
22 |
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
CMD ["python", "/workspace/main.py"]
|
|
|
21 |
mv /tmp/nnUNetTrainerV2_Loss_FL_and_CE.py "$SITE_PKG/nnunet/training/network_training/nnUNetTrainerV2_Loss_FL_and_CE.py"
|
22 |
|
23 |
|
24 |
+
# Set up a new user named "user" with user ID 1000
|
25 |
+
RUN useradd -m -u 1000 user
|
26 |
+
|
27 |
+
# Switch to the "user" user
|
28 |
+
USER user
|
29 |
+
|
30 |
+
# Set home to the user's home directory
|
31 |
+
ENV HOME=/home/user \
|
32 |
+
PATH=/home/user/.local/bin:$PATH
|
33 |
+
|
34 |
+
# Set the working directory to the user's home directory
|
35 |
+
WORKDIR $HOME/app
|
36 |
+
|
37 |
+
COPY --chown=user main.py /workspace/main.py
|
38 |
|
39 |
CMD ["python", "/workspace/main.py"]
|