小编San*_*uri的帖子

创建一个web2py docker镜像并通过浏览器访问它

我正在尝试在ubuntu上构建web2py的docker镜像.鉴于docker文件

    #######################
    # Web2py installation #
    #######################

    # Set the base image for this installation
    FROM ubuntu

    # File Author/ Mainteainer
    MAINTAINER sandilya28

    #Update the repository sources list
    RUN apt-get update --assume-yes

    ########### BEGIN INSTALLATION #############

    ## Install Git first
    RUN apt-get install git-core --assume-yes && \ 
    cd /home/ && \ 
    git clone --recursive https://github.com/web2py/web2py.git

    ## Install Python

   RUN sudo apt-get install python --assume-yes

   ########## END INSTALLATION ################

   # Expose the default port
   EXPOSE 8000

   WORKDIR /home/
Run Code Online (Sandbox Code Playgroud)

通过使用上面的Dockerfile构建映像

docker build …
Run Code Online (Sandbox Code Playgroud)

web2py docker

6
推荐指数
1
解决办法
1710
查看次数

标签 统计

docker ×1

web2py ×1