@@ -6,15 +6,15 @@ ARG CUDA_ARCHITECTURES="90;89;86;80;75;70;61"
66ARG NERFSTUDIO_VERSION=""
77
88# Pull source either provided or from git.
9- FROM scratch AS source_copy
9+ FROM scratch as source_copy
1010ONBUILD COPY . /tmp/nerfstudio
11- FROM alpine/git AS source_no_copy
11+ FROM alpine/git as source_no_copy
1212ARG NERFSTUDIO_VERSION
1313ONBUILD RUN git clone --branch ${NERFSTUDIO_VERSION} --recursive https://github.com/nerfstudio-project/nerfstudio.git /tmp/nerfstudio
1414ARG NERFSTUDIO_VERSION
15- FROM source_${NERFSTUDIO_VERSION:+no_}copy AS source
15+ FROM source_${NERFSTUDIO_VERSION:+no_}copy as source
1616
17- FROM nvidia/cuda:${NVIDIA_CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION} AS builder
17+ FROM nvidia/cuda:${NVIDIA_CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION} as builder
1818ARG CUDA_ARCHITECTURES
1919ARG NVIDIA_CUDA_VERSION
2020ARG UBUNTU_VERSION
@@ -109,15 +109,15 @@ RUN chmod -R go=u /usr/local/lib/python3.10 && \
109109#
110110# Docker runtime stage.
111111#
112- FROM nvidia/cuda:${NVIDIA_CUDA_VERSION}-runtime-ubuntu${UBUNTU_VERSION} AS runtime
112+ FROM nvidia/cuda:${NVIDIA_CUDA_VERSION}-runtime-ubuntu${UBUNTU_VERSION} as runtime
113113ARG CUDA_ARCHITECTURES
114114ARG NVIDIA_CUDA_VERSION
115115ARG UBUNTU_VERSION
116116
117- LABEL org.opencontainers.image.source= "https://github.com/nerfstudio-project/nerfstudio"
118- LABEL org.opencontainers.image.licenses= "Apache License 2.0"
117+ LABEL org.opencontainers.image.source = "https://github.com/nerfstudio-project/nerfstudio"
118+ LABEL org.opencontainers.image.licenses = "Apache License 2.0"
119119LABEL org.opencontainers.image.base.name="docker.io/library/nvidia/cuda:${NVIDIA_CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION}"
120- LABEL org.opencontainers.image.documentation= "https://docs.nerf.studio/"
120+ LABEL org.opencontainers.image.documentation = "https://docs.nerf.studio/"
121121
122122# Minimal dependencies to run COLMAP binary compiled in the builder stage.
123123# Note: this reduces the size of the final image considerably, since all the
@@ -152,4 +152,4 @@ COPY --from=builder /usr/local/bin/ns* /usr/local/bin/
152152RUN /bin/bash -c 'ns-install-cli --mode install'
153153
154154# Bash as default entrypoint.
155- CMD [ " /bin/bash" , "-l" ]
155+ CMD /bin/bash -l
0 commit comments