forked from decodingml/llm-twin-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Finish Superlinked implementation
- Loading branch information
1 parent
e129b47
commit 1a60f06
Showing
20 changed files
with
566 additions
and
297 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.11-slim-bullseye | ||
|
||
ENV WORKSPACE_ROOT=/usr/src/app \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
POETRY_HOME="/opt/poetry" \ | ||
POETRY_NO_INTERACTION=1 | ||
|
||
RUN mkdir -p $WORKSPACE_ROOT | ||
|
||
# Install system dependencies | ||
RUN apt-get update -y \ | ||
&& apt-get install -y --no-install-recommends build-essential \ | ||
gcc \ | ||
python3-dev \ | ||
curl \ | ||
build-essential \ | ||
&& apt-get clean | ||
|
||
# Install Poetry | ||
RUN curl -sSL https://install.python-poetry.org | python - | ||
|
||
# Add Poetry to PATH | ||
ENV PATH="$POETRY_HOME/bin:$PATH" | ||
|
||
RUN apt-get remove -y curl | ||
|
||
# Copy the pyproject.toml and poetry.lock files from the root directory | ||
COPY ./pyproject.toml ./poetry.lock ./ | ||
|
||
# Install dependencies | ||
RUN poetry config virtualenvs.create false && poetry install | ||
|
||
# Set the working directory | ||
WORKDIR $WORKSPACE_ROOT | ||
|
||
# Copy the 3-feature-pipeline and any other necessary directories | ||
COPY ./3-feature-pipeline . | ||
COPY ./core ./core | ||
|
||
# Set the PYTHONPATH environment variable | ||
ENV PYTHONPATH=/usr/src/app | ||
|
||
RUN chmod +x /usr/src/app/scripts/bytewax_entrypoint.sh | ||
|
||
# Command to run the Bytewax pipeline script | ||
CMD ["/usr/src/app/scripts/bytewax_entrypoint.sh"] |
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.