Skip to content

Commit

Permalink
Merge pull request #8 from thevahidal/thevahidal-patch-2
Browse files Browse the repository at this point in the history
Create Dockerfile
  • Loading branch information
thevahidal authored Jan 7, 2025
2 parents a1d7c0d + 4d9f8ec commit 0dbf249
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3.11-slim

WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends curl git \
&& curl -sSL https://install.python-poetry.org | python3 - \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ENV PATH="/root/.local/bin:$PATH"

COPY . /app

RUN poetry install --no-root

RUN poetry run python script.py

VOLUME ["/app/dist"]

CMD ["tail", "-f", "/dev/null"]

0 comments on commit 0dbf249

Please sign in to comment.