Skip to content

Commit

Permalink
Revert "Reduce Quickstart Pipeline image size (#347)"
Browse files Browse the repository at this point in the history
This reverts commit a3bb6d7.
  • Loading branch information
grahamia committed Aug 2, 2024
1 parent 8522d19 commit a80eb65
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4,853 deletions.
21 changes: 2 additions & 19 deletions docs-gen/includes/quickstart/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
FROM python:3.10.12 as builder
# TFX build
FROM tensorflow/tfx:1.13.0

RUN mkdir /data
RUN wget https://raw.githubusercontent.com/tensorflow/tfx/master/tfx/examples/penguin/data/labelled/penguins_processed.csv -P /data

RUN pip install poetry==1.7.1

COPY pyproject.toml .
COPY poetry.lock .

RUN poetry config virtualenvs.create true
RUN poetry config virtualenvs.in-project true
RUN poetry install --no-root

FROM python:3.10.12-slim as runtime

ENV VIRTUAL_ENV=/.venv \
PATH="/.venv/bin:$PATH"

WORKDIR /pipeline

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
COPY --from=builder /data /data

COPY penguin_pipeline/*.py ./

ENV PYTHONPATH="/pipeline:${PYTHONPATH}"
Loading

0 comments on commit a80eb65

Please sign in to comment.