Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Dockerfile #180

Merged
merged 14 commits into from
Aug 30, 2024
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ ENV POETRY_NO_INTERACTION=1 \
WORKDIR /app
COPY . .

RUN poetry install
RUN /app/.venv/lib/python3.11/site-packages/pip install git+https://github.com/facebookresearch/detectron2.git && rm -rf $POETRY_CACHE_DIR
RUN poetry install && pip3 install https://pai-rag.oss-cn-hangzhou.aliyuncs.com/packages/python_wheels/detectron2-0.6%2Bpt2.3.0cpu-cp311-cp311-linux_x86_64.whl && rm -rf $POETRY_CACHE_DIR

FROM python:3.11-slim AS prod

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY . .
RUN mv pyproject_gpu.toml pyproject.toml \
&& rm poetry.lock

RUN poetry install && pip3 install --upgrade pip && pip3 install git+https://github.com/facebookresearch/detectron2.git && rm -rf $POETRY_CACHE_DIR
RUN poetry install && pip3 install https://pai-rag.oss-cn-hangzhou.aliyuncs.com/packages/python_wheels/detectron2-0.6%2Bpt2.3.0cpu-cp311-cp311-linux_x86_64.whl && rm -rf $POETRY_CACHE_DIR

FROM python:3.11-slim AS prod

Expand Down