Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -22,7 +22,8 @@ ENV HOME=/home/user \
|
|
22 |
# Set the working directory to the user's home directory
|
23 |
WORKDIR $HOME/app
|
24 |
|
25 |
-
# Install system dependencies
|
|
|
26 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
27 |
git \
|
28 |
cmake \
|
@@ -63,5 +64,6 @@ RUN git submodule init && git submodule update
|
|
63 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
64 |
ENV CUDA_VISIBLE_DEVICES=0
|
65 |
|
|
|
66 |
# Command to run your application
|
67 |
CMD ["python", "app.py"]
|
|
|
22 |
# Set the working directory to the user's home directory
|
23 |
WORKDIR $HOME/app
|
24 |
|
25 |
+
# Install system dependencies as root
|
26 |
+
USER root
|
27 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
28 |
git \
|
29 |
cmake \
|
|
|
64 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
65 |
ENV CUDA_VISIBLE_DEVICES=0
|
66 |
|
67 |
+
USER user
|
68 |
# Command to run your application
|
69 |
CMD ["python", "app.py"]
|