好好百科

分享有趣又有用的知识

用户工具

站点工具


侧边栏

导航菜单

archlinux:package:docker

Docker

FROM python:3.6
ADD . /app
WORKDIR /app
RUN pip install flask gunicorn
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app"]
docker run --rm --name webserver -d -p 80:80 nginx:alpine

docker exec -it webserver sh

docker diff webserver

docker commit webserver nginx:my_version
archlinux/package/docker.txt · 最后更改: 2019/09/10 09:48 由 老赵