-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix emr serverless python deps sample dockerfile (#255)
--------- Co-authored-by: Mathieu Cloutier <[email protected]>
- Loading branch information
1 parent
ec34fa0
commit 636c092
Showing
3 changed files
with
15 additions
and
8 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 @@ | ||
pyspark_env |
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 |
---|---|---|
|
@@ -22,9 +22,11 @@ COPY . . | |
## Build and export stages for standard Python projects | ||
## ---------------------------------------------------------------------------- | ||
# Build stage - installs required dependencies and creates a venv package | ||
FROM base as build-poetry | ||
RUN poetry self add poetry-plugin-bundle && \ | ||
poetry bundle venv dist/bundle | ||
FROM base AS build-poetry | ||
WORKDIR /app | ||
|
||
RUN poetry self add [email protected] | ||
RUN poetry bundle venv /app/dist/bundle --clear | ||
|
||
FROM scratch as export-poetry | ||
FROM scratch AS export-poetry | ||
COPY --from=build-poetry /app/dist/bundle /pyspark_env/ |
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