Skip to content

Commit

Permalink
build: comply with docker best practice.
Browse files Browse the repository at this point in the history
Signed-off-by: Fan, Shang Xiang <[email protected]>
  • Loading branch information
Fan, Shang Xiang committed Oct 16, 2018
1 parent 0c32013 commit 3d7c650
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions images/ceph/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ ARG ARCH
ARG TINI_VERSION

# Run tini as PID 1 and avoid signal handling issues
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH} /tini
RUN chmod +x /tini
RUN curl --fail -sSL -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH} && \
chmod +x /tini

COPY rook rookflex toolbox.sh /usr/local/bin/

Expand Down
2 changes: 1 addition & 1 deletion images/cockroachdb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

FROM cockroachdb/cockroach:v2.0.2

ADD rook /usr/local/bin/
COPY rook /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/rook"]
CMD [""]
4 changes: 2 additions & 2 deletions images/cross/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ ARG ARCH
ARG TINI_VERSION

# Run tini as PID 1 and avoid signal handling issues
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH} /tini
RUN chmod +x /tini
RUN curl -sSL --fail -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH} && \
chmod +x /tini

# precompile the go standard library for all supported platforms and configurations
# the install suffixes match those in golang.mk so please keep them in sync
Expand Down
2 changes: 1 addition & 1 deletion images/minio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

FROM minio/minio:RELEASE.2018-04-19T22-54-58Z

ADD rook /usr/local/bin/
COPY rook /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/rook"]
CMD [""]
2 changes: 1 addition & 1 deletion images/nfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ COPY start.sh /

EXPOSE 2049 38465-38467 662 111/udp 111

ADD rook /usr/local/bin/
COPY rook /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/rook"]
CMD [""]

0 comments on commit 3d7c650

Please sign in to comment.