Skip to content

Commit

Permalink
single image
Browse files Browse the repository at this point in the history
  • Loading branch information
b-brodie committed Jan 23, 2024
1 parent d45aebd commit 7de0356
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,29 +63,7 @@ COPY . ./
RUN --mount=type=cache,target=/root/.cache \
poetry install --no-root


################################
# BUILDER-BASE
# Used to build deps + create our virtual environment
################################
FROM poetry-base as builder-base

WORKDIR $PYSETUP_PATH

# --> also download required ColBERT model files
RUN poetry run python docs_qa/preload_colbert.py


################################
# PRODUCTION
# Final image used for runtime
################################
FROM poetry-base as production
ENV FASTAPI_ENV=production
WORKDIR $PYSETUP_PATH

# copy in our built poetry, venv and app
COPY --from=builder-base $POETRY_HOME $POETRY_HOME
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH

CMD ["poetry", "run", "python", "bolt.py"]

0 comments on commit 7de0356

Please sign in to comment.