-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Reduce Quickstart Pipeline image size (#347)"
This reverts commit a3bb6d7.
- Loading branch information
Showing
6 changed files
with
9 additions
and
4,853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
Oops, something went wrong.