Tag: pyramid

Docker中的端口映射

我创build了一个示例python金字塔应用程序的docker。 我的dockerfile是这样的: FROM ubuntu:16.04 RUN apt-get update -y && \ apt-get install -y python-pip python-dev curl && \ pip install –upgrade pip setuptools WORKDIR /app COPY . /app EXPOSE 6543 RUN pip install -e . ENTRYPOINT [ "pserve" ] CMD [ "development.ini" ] 我的构build命令是这样的: docker build -t pyramid_app:latest . 我的运行命令是这样的: docker run -d -p 6543:6543 […]