Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -7
Dockerfile
CHANGED
|
@@ -41,22 +41,29 @@ RUN pip install submodules/simple-knn && \
|
|
| 41 |
# sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 42 |
# pip install submodules/diff-gaussian-rasterization
|
| 43 |
|
|
|
|
|
|
|
|
|
|
| 44 |
# Set the working directory
|
|
|
|
|
|
|
| 45 |
RUN useradd -m -u 1000 user
|
|
|
|
| 46 |
|
| 47 |
-
COPY --chown=user .
|
|
|
|
| 48 |
# COPY ./requirements.txt requirements.txt
|
| 49 |
-
RUN pip install -r requirements.txt
|
| 50 |
-
RUN pip install imageio[ffmpeg]
|
| 51 |
|
| 52 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 53 |
|
| 54 |
-
COPY --chown=user ./run_train_infer.sh run_train_infer.sh
|
| 55 |
# COPY ./run_train_infer.sh run_train_infer.sh
|
| 56 |
RUN chmod +x run_train_infer.sh
|
| 57 |
|
| 58 |
-
RUN chown -R user:user /app
|
| 59 |
-
USER user
|
| 60 |
|
| 61 |
# Default command to run when the container starts
|
| 62 |
-
CMD ["/bin/bash", "run_train_infer.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
# sed -i '154s/p_view.z <= 0.2f/p_view.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h && \
|
| 42 |
# pip install submodules/diff-gaussian-rasterization
|
| 43 |
|
| 44 |
+
RUN pip install -r requirements.txt
|
| 45 |
+
RUN pip install imageio[ffmpeg]
|
| 46 |
+
|
| 47 |
# Set the working directory
|
| 48 |
+
RUN chown -R user:user /app
|
| 49 |
+
|
| 50 |
RUN useradd -m -u 1000 user
|
| 51 |
+
USER user
|
| 52 |
|
| 53 |
+
COPY --chown=user . /app
|
| 54 |
+
# COPY --chown=user ./requirements.txt requirements.txt
|
| 55 |
# COPY ./requirements.txt requirements.txt
|
|
|
|
|
|
|
| 56 |
|
| 57 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 58 |
|
| 59 |
+
# COPY --chown=user ./run_train_infer.sh run_train_infer.sh
|
| 60 |
# COPY ./run_train_infer.sh run_train_infer.sh
|
| 61 |
RUN chmod +x run_train_infer.sh
|
| 62 |
|
|
|
|
|
|
|
| 63 |
|
| 64 |
# Default command to run when the container starts
|
| 65 |
+
# CMD ["/bin/bash", "run_train_infer.sh"]
|
| 66 |
+
|
| 67 |
+
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 68 |
+
|
| 69 |
+
CMD ["python", "app.py"]
|