From ed5fac3432043ae55d659edc423d4481eaf8e023 Mon Sep 17 00:00:00 2001 From: abdulhade Date: Thu, 20 Feb 2025 13:49:35 +0300 Subject: [PATCH] Added initalize files. --- .gitignore | 2 ++ Dockerfile | 23 +++++++++++++++++++++++ main.py | 1 + requirements.txt | 6 ++++++ 4 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 main.py create mode 100644 requirements.txt 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