Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Deployment on Docker

$
0
0

Hi,

I would like to deploy my Dash app on Docker. My folder structure:

  • application
    • Dockerfile
    • requirement.txt
    • index.py

My index.py

if __name__ == '__main__':
    app.run_server(host='0.0.0.0', port=8050, debug=True)

My Dockerfile

FROM python:3.7

RUN mkdir /application
WORKDIR /application

COPY requirements.txt /
RUN pip install -r /requirements.txt

COPY ./ ./
EXPOSE 8050

CMD ["python", "./index.py"]

The commands for docker:

docker build -t test_app .
docker run test_app  0.0.0.0:8050 -d

Error: docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused “exec: “0.0.0.0:8050”: executable file not found in $PATH”: unknown.

What am I doing wrong?

Kind regards

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles