Skip to content

Commit f9d4c37

Browse files
authored
🐳 Install poetry as system-wide tool, install package itself (#12)
* 🐳 Install poetry as system-wide tool, install package itself * 🔖 Bump version to 0.1.6
1 parent 56c15cf commit f9d4c37

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM python:3.8
22

33
WORKDIR /opt/project
44

5-
RUN pip install poetry>=1.0.0 && \
6-
pip install gunicorn==20
5+
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
6+
ENV PATH="/root/.poetry/bin:$PATH"
77

88
COPY pyproject.toml poetry.lock /opt/project/
99

@@ -12,5 +12,7 @@ RUN poetry config virtualenvs.create false && \
1212
poetry install --no-dev
1313

1414
COPY . /opt/project/
15+
# we need to install package itself for version resolving
16+
RUN poetry install --no-dev
1517

1618
CMD ["/opt/project/run-app.sh"]

poetry.lock

Lines changed: 22 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ppm-telegram-bot"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
description = ""
55
authors = ["Dima Boger <meetup@piterpy.ru>"]
66
license = "MIT"
@@ -12,6 +12,7 @@ fastapi_security_telegram_webhook = "0.2.0"
1212
pydantic = "^1.4"
1313
aiogram = "^2.6.1"
1414
uvicorn = "^0.11.3"
15+
gunicorn = "^20.0.4"
1516

1617
[tool.poetry.dev-dependencies]
1718
mypy = "^0.761"

0 commit comments

Comments
 (0)