Skip to content

Commit 7b86568

Browse files
committed
Revert "rm format warning on Dockerfile"
This reverts commit c20c914.
1 parent a9de827 commit 7b86568

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ ARG CUDA_ARCHITECTURES="90;89;86;80;75;70;61"
66
ARG NERFSTUDIO_VERSION=""
77

88
# Pull source either provided or from git.
9-
FROM scratch AS source_copy
9+
FROM scratch as source_copy
1010
ONBUILD COPY . /tmp/nerfstudio
11-
FROM alpine/git AS source_no_copy
11+
FROM alpine/git as source_no_copy
1212
ARG NERFSTUDIO_VERSION
1313
ONBUILD RUN git clone --branch ${NERFSTUDIO_VERSION} --recursive https://github.com/nerfstudio-project/nerfstudio.git /tmp/nerfstudio
1414
ARG 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
1818
ARG CUDA_ARCHITECTURES
1919
ARG NVIDIA_CUDA_VERSION
2020
ARG 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
113113
ARG CUDA_ARCHITECTURES
114114
ARG NVIDIA_CUDA_VERSION
115115
ARG 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"
119119
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/"
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/
152152
RUN /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

Comments
 (0)