bat/tests/syntax-tests/source/Dockerfile/Dockerfile
Martin Nordholts 68d525cd8b Don't add artificial newline to last line if --style=plain
This fixes #1438.

Note however, that using a pager such as less will add a newline itself.
So to actually not print a newline for such files, you need to either
disable paging:

  bat --style=plain --paging=never no-newline-at-end-of-file.txt

or use a "pager" that does not add a newline:

  bat --style=plain --pager=cat no-newline-at-end-of-file.txt

Note that we also update syntax tests file since a bunch of them had
missing newlines on the last lines.
2020-12-19 10:32:50 +01:00

20 lines
478 B
Docker
Vendored

ARG architecture=amd64
FROM $architecture/centos:7
LABEL com.example.version="0.2.1-beta"
ARG architecture
ENV INTERESTING_PATH /usr/bin/interesting-software
COPY entrypoint.sh /usr/bin/entrypoint.sh
RUN if [ "$architecture" = "i386" ]; then echo "Building i386 docker image" && \
linux32 yum update -y && linux32 yum install -y mysql ; \
else yum update -y && yum install -y mysql
EXPOSE 80/tcp
VOLUME [/var/lib/mysql/data]
ENTRYPOINT ["/usr/bin/entrypoint.sh"]