Dockerfile复制在ElasticBeanstalk中不起作用

时间:2020-10-25 17:58:28

标签: docker nginx dockerfile amazon-elastic-beanstalk

我正在使用EB CLI将docker映像部署到AWS中。我的Dockerfile中有一些复制命令,它们似乎不起作用。这是我的文件结构。 enter image description here

Dockerfile:

FROM alqutami/rtmp-hls

COPY custom.conf /usr/local/nginx/nginx.conf
COPY cogc.html /usr/local/nginx/html/players

EXPOSE 80

Dockerrun.aws.json:

{
  "AWSEBDockerrunVersion": 2,
  "containerDefinitions": [
    {
      "name": "rtmp-server",
      "image": "alqutami/rtmp-hls",
      "memory": 512,
      "portMappings": [
        {
          "hostPort": 1935,
          "containerPort": 1935
        },
        {
          "hostPort": 8080,
          "containerPort": 8080
        }
      ]
    }
  ]
}

映像部署没有错误。我可以查看服务器上的内容。但是,我的自定义conf和自定义html似乎没有部署。

0 个答案:

没有答案