diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0062a8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.devcontainer +venv/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..14e5f57 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM python:3.12-slim + +WORKDIR /app + +RUN apt-get update && apt-get install -y \ + build-essential \ + curl \ + software-properties-common \ + git \ + && rm -rf /var/lib/apt/lists/* + +# RUN git clone https://github.com/streamlit/streamlit-example.git . +COPY requirements.txt . + +RUN pip3 install -r requirements.txt + +# COPY . . + +EXPOSE 8333 + +# HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health + +# ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"] diff --git a/main.py b/main.py new file mode 100644 index 0000000..9ca187c --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +print(__file__) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c4308d5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +fastapi +uvicorn +aiomysql +websockets +pydantic +python-dotenv \ No newline at end of file