Hello All,
My requirements are as follows:
- Get a Windows 11 image
- install python 3.13
- create virtual environment
- activate virtual environment
- Install Streamlit and other required packages.
- copy application
- run Streamlit application
When I tried to create a docker with Linux system, its working fine. Below is my Dockerfile
FROM python:3.9.20-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
COPY ./.streamlit /app/.streamlit
COPY ./requirements.txt /app/requirements.txt
COPY ./pyproject.toml /app/pyproject.toml
COPY ./src /app/src
COPY ./contract.db /app/
RUN pip3 install -r requirements.txt
RUN pip3 install -e .
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=UTF-8
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "src/enx_streamlit/xxx.py", "--server.port=8501", "--server.address=0.0.0.0"]
Someone please help. I appreciate any help you can provide.