Hello!
My simple code is:
import dash
from dash import Dash,html
app=dash.Dash(__name__)
app.layout =html.Div('Hello from docker')
if __name__ == '__main__':
app.run_server(host='127.0.0.1',port=8085,debug=False,)
My Dockerfile code is:
FROM python:3.11
WORKDIR /app
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt --default-timeout=100 future
COPY . .
EXPOSE 8085
CMD ["python" ,"-m","Dashboard_App.z"]
When I run my code in pycharm or Command prompt it works proparely but when I run docker app image I get this error:
What’s the problem?
Please tell me the solution either
Thank you