bat/tests/syntax-tests/highlighted/Dockerfile/Dockerfile

20 lines
1.4 KiB
Docker
Vendored
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"]