@@ -6,15 +6,15 @@ ARG CUDA_ARCHITECTURES="90;89;86;80;75;70;61"
6
6
ARG NERFSTUDIO_VERSION=""
7
7
8
8
# Pull source either provided or from git.
9
- FROM scratch AS source_copy
9
+ FROM scratch as source_copy
10
10
ONBUILD COPY . /tmp/nerfstudio
11
- FROM alpine/git AS source_no_copy
11
+ FROM alpine/git as source_no_copy
12
12
ARG NERFSTUDIO_VERSION
13
13
ONBUILD RUN git clone --branch ${NERFSTUDIO_VERSION} --recursive https://github.com/nerfstudio-project/nerfstudio.git /tmp/nerfstudio
14
14
ARG NERFSTUDIO_VERSION
15
- FROM source_${NERFSTUDIO_VERSION:+no_}copy AS source
15
+ FROM source_${NERFSTUDIO_VERSION:+no_}copy as source
16
16
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
18
18
ARG CUDA_ARCHITECTURES
19
19
ARG NVIDIA_CUDA_VERSION
20
20
ARG UBUNTU_VERSION
@@ -109,15 +109,15 @@ RUN chmod -R go=u /usr/local/lib/python3.10 && \
109
109
#
110
110
# Docker runtime stage.
111
111
#
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
113
113
ARG CUDA_ARCHITECTURES
114
114
ARG NVIDIA_CUDA_VERSION
115
115
ARG UBUNTU_VERSION
116
116
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"
119
119
LABEL 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/"
121
121
122
122
# Minimal dependencies to run COLMAP binary compiled in the builder stage.
123
123
# 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/
152
152
RUN /bin/bash -c 'ns-install-cli --mode install'
153
153
154
154
# Bash as default entrypoint.
155
- CMD [ " /bin/bash" , "-l" ]
155
+ CMD /bin/bash -l
0 commit comments