diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..110e416 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git/ +__pycache__/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4315c14 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.11-slim + +WORKDIR /app + +RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* + +RUN curl -sSL https://install.python-poetry.org | python3 - + +# Ensure Poetry is available in PATH +ENV PATH="/root/.local/bin:$PATH" + +COPY pyproject.toml poetry.lock ./ + +RUN poetry self add "poetry-plugin-export" && \ + poetry export -f requirements.txt --without-hashes -o requirements.txt && \ + pip install --no-cache-dir -r requirements.txt + +COPY . . diff --git a/requirements.txt b/requirements.txt index aa7b71e..a423483 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,4 @@ httpx cache_to_disk # datasets loguru -pandas +pandas \ No newline at end of file