Dockerfile 작성할 때 참고용
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FROM centos:7 RUN yum install -y make libtool pkgconfig autoconf python-sphinx wget bzip2 bind-utils EXPOSE 53 COPY knot.conf /work <span class="k">WORKDIR</span><span class="s"> /work</span> <span class="k">ENTRYPOINT</span><span class="s"> ["/entrypoint.sh"]</span> <span class="k">CMD</span><span class="s"> ["python", "-u", "/work/app.py"]</span> |
Run
1 2 3 4 5 6 |
docker run -it --rm \ -p 3307:3306 \ -v /nfs/rt-knot-service/mysql/entrypoint.sh:/entrypoint.sh \ -e MYSQL_ROOT_PASSWORD=passwd \ my-docker-image:v1 \ /bin/bash |