File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -4,20 +4,21 @@ FROM python:$PYTHON_BASE AS builder
4
4
# install PDM
5
5
RUN pip install -U pdm
6
6
ENV PDM_CHECK_UPDATE=false
7
- COPY pyproject.toml pdm.lock README.md /project /
8
- COPY tg_searcher /project /tg_searcher
7
+ COPY pyproject.toml pdm.lock README.md /app /
8
+ COPY tg_searcher /app /tg_searcher
9
9
10
10
# install dependencies and project into the local packages directory
11
- WORKDIR /project
11
+ WORKDIR /app
12
12
RUN pdm install --check --prod --no-editable
13
13
14
14
# run stage
15
15
FROM python:$PYTHON_BASE
16
16
17
17
# retrieve packages from build stage
18
- COPY --from=builder /project/.venv/ /project/.venv
19
- ENV PATH="/project/.venv/bin:$PATH"
20
- COPY tg_searcher /project/tg_searcher
21
- WORKDIR /project
22
- CMD ["python" , "tg_searcher/__main__.py" ]
18
+ COPY --from=builder /app/.venv/ /app/.venv
19
+ ENV PATH="/app/.venv/bin:$PATH"
20
+ COPY tg_searcher /app/tg_searcher
21
+ WORKDIR /app
22
+ ENTRYPOINT ["python" , "tg_searcher/__main__.py" ]
23
+ CMD ["-f" , "./config/searcher.yaml" ]
23
24
You can’t perform that action at this time.
0 commit comments