Browse Source

Use JSON notation for Dockerfile CMD arguments

Reference:
- https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#cmd

> The `CMD` instruction should be used to run the software contained in
your image, along with any arguments. `CMD` should almost always be used
in the form of `CMD ["executable", "param1", "param2"…]`
pull/608/head
Peter Dave Hello 5 years ago
parent
commit
fb7b3ee145
8 changed files with 8 additions and 8 deletions
  1. +1
    -1
      test/Dockerfile-alpine
  2. +1
    -1
      test/Dockerfile-centos6
  3. +1
    -1
      test/Dockerfile-centos7-staging
  4. +1
    -1
      test/Dockerfile-debian
  5. +1
    -1
      test/Dockerfile-ubuntu
  6. +1
    -1
      test/Dockerfile-ubuntu-staging
  7. +1
    -1
      test/Dockerfile-ubuntu16
  8. +1
    -1
      test/Dockerfile-ubuntu18

+ 1
- 1
test/Dockerfile-alpine View File

@ -18,4 +18,4 @@ RUN /bats-core/install.sh /usr/local
# Use supervisord to run nginx in the background
COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

+ 1
- 1
test/Dockerfile-centos6 View File

@ -23,4 +23,4 @@ RUN /bats-core/install.sh /usr/local
EXPOSE 80 443
# Run eternal loop - for testing
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

+ 1
- 1
test/Dockerfile-centos7-staging View File

@ -24,4 +24,4 @@ RUN /bats-core/install.sh /usr/local
EXPOSE 80 443
# Run eternal loop - for testing
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

+ 1
- 1
test/Dockerfile-debian View File

@ -16,4 +16,4 @@ RUN git clone --depth 1 https://github.com/bats-core/bats-assert /bats-assert
RUN /bats-core/install.sh /usr/local
# Run eternal loop - for testing
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

+ 1
- 1
test/Dockerfile-ubuntu View File

@ -22,4 +22,4 @@ RUN git clone --depth 1 https://github.com/bats-core/bats-assert /bats-assert
RUN /bats-core/install.sh /usr/local
# Run eternal loop - for testing
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

+ 1
- 1
test/Dockerfile-ubuntu-staging View File

@ -26,4 +26,4 @@ RUN git clone --depth 1 https://github.com/bats-core/bats-assert /bats-assert
RUN /bats-core/install.sh /usr/local
# Run eternal loop - for testing
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

+ 1
- 1
test/Dockerfile-ubuntu16 View File

@ -18,4 +18,4 @@ RUN git clone --depth 1 https://github.com/bats-core/bats-assert /bats-assert
RUN /bats-core/install.sh /usr/local
# Run eternal loop - for testing
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

+ 1
- 1
test/Dockerfile-ubuntu18 View File

@ -23,4 +23,4 @@ RUN /bats-core/install.sh /usr/local
EXPOSE 80 443
# Run eternal loop - for testing
CMD tail -f /dev/null
CMD [ "tail", "-f", "/dev/null" ]

Loading…
Cancel
Save