From 1828455bd758728e68941e2f304246d7baa18748 Mon Sep 17 00:00:00 2001 From: 92username <115041664+92username@users.noreply.github.com> Date: Fri, 20 Dec 2024 20:52:48 -0300 Subject: [PATCH] feat : add docker-compose.yml and Dockerfile --- Dockerfile | 8 ++++++++ docker-compose.yml | 9 +++++++++ requirements.txt | 1 - 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..16c28a08 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# Description: Dockerfile for Streamlit app +FROM python:3.9-slim +WORKDIR /app +COPY requirements.txt /app +RUN pip install --no-cache-dir -r requirements.txt +COPY . /app +EXPOSE 8501 +CMD ["streamlit", "run", "form.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..2b8d6b33 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' + +services: + app: + build: . + ports: + - "8501:8501" + env_file: + - .env diff --git a/requirements.txt b/requirements.txt index b9823290..3ead04e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,6 @@ certifi==2024.8.30 charset-normalizer==3.3.2 click==8.1.7 distro==1.9.0 -dotenv==0.0.5 exceptiongroup==1.2.2 gitdb==4.0.11 GitPython==3.1.43