alicfeng/mysql_markdown

Dockerfile增加ENTRYPOINT

he426100 opened this issue · 1 comments

FROM alpine:3.7
LABEL Maintainer="AlicFeng <a@samego.com>" \
      Description="mysql_markdown based on golang"

COPY release/mysql_markdown_unix /usr/local/sbin/mysql_markdown

RUN chmod a+x /usr/local/sbin/mysql_markdown && \
    mkdir /data/

WORKDIR /data
ENTRYPOINT [ "/usr/local/sbin/mysql_markdown" ]
CMD [ "--help" ]
FROM alpine:3.7
LABEL Maintainer="AlicFeng <a@samego.com>" \
      Description="mysql_markdown based on golang"

COPY release/mysql_markdown_unix /usr/local/sbin/mysql_markdown

RUN chmod a+x /usr/local/sbin/mysql_markdown && \
    mkdir /data/

WORKDIR /data
ENTRYPOINT [ "/usr/local/sbin/mysql_markdown" ]
CMD [ "--help" ]

建议太棒了,好的。