Don't see Django in Docker container

前端 未结 3 1347
攒了一身酷
攒了一身酷 2021-01-27 17:22

I want to run Django in a simple Docker container.

First I built my container with Docker-file. There wasn\'t anything special in it (only FROM, RUN and COPY commands)

3条回答
  •  耶瑟儿~
    2021-01-27 17:45

    You need to expose port 8000 in your Dockerfile and run a WSGI server like gunicorn. If you follow the steps here you should be good... https://semaphoreci.com/community/tutorials/dockerizing-a-python-django-web-application

提交回复
热议问题