Skip to content

Commit

Permalink
Merge pull request #91 from fardin-developer/fardin/dev
Browse files Browse the repository at this point in the history
docker added
  • Loading branch information
msoedov authored Jan 19, 2025
2 parents 70c18c8 + 724ad15 commit fc21339
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git/
__pycache__/
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 . .
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ httpx
cache_to_disk
# datasets
loguru
pandas
pandas

0 comments on commit fc21339

Please sign in to comment.