Skip to content

Commit 9c3a3c1

Browse files
committed
update poetry package in docker file
1 parent d1f9c93 commit 9c3a3c1

4 files changed

Lines changed: 11 additions & 16 deletions

File tree

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,16 @@ ENV DEBIAN_FRONTEND='noninteractive'
66

77
RUN apt-get update && apt install -y curl
88

9+
COPY ./README.md /app/README.md
10+
911
RUN pip install poetry
1012

1113
ENV PATH="${PATH}:/root/.local/bin"
1214

13-
COPY ./pyproject.toml /app/pyproject.toml
14-
15-
COPY ./poetry.lock /app/poetry.lock
16-
17-
COPY ./README.md /app/README.md
18-
19-
RUN poetry install --no-root
20-
2115
COPY . /app
2216

17+
RUN poetry install
18+
2319
EXPOSE 8000
2420

2521
#Exposing port for celery flower

Dockerfile.api

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,16 @@ ENV DEBIAN_FRONTEND='noninteractive'
66

77
RUN apt-get update && apt install -y curl
88

9+
COPY ./README.md /app/README.md
10+
911
RUN pip install poetry
1012

1113
ENV PATH="${PATH}:/root/.local/bin"
1214

13-
COPY ./pyproject.toml /app/pyproject.toml
14-
15-
COPY ./poetry.lock /app/poetry.lock
16-
17-
COPY ./README.md /app/README.md
18-
19-
RUN poetry install --no-root
20-
2115
COPY . /app
2216

17+
RUN poetry install
18+
2319
EXPOSE 8000
2420

2521
ENTRYPOINT ["sh", "/app/scripts/start.sh"]

celerybeat-schedule.dat

0 Bytes
Binary file not shown.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.1.0"
44
description = "database management system"
55
authors = ["Your Name <you@example.com>"]
66
readme = "README.md"
7+
packages = [
8+
{ include = "app" },
9+
]
710

811
[tool.poetry.dependencies]
912
python = "^3.10"

0 commit comments

Comments
 (0)