-
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.
- Loading branch information
Showing
1 changed file
with
2 additions
and
10 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,20 +1,12 @@ | ||
FROM python:3.12-slim as build | ||
WORKDIR /app | ||
COPY . . | ||
RUN cd /app && python setup.py bdist_wheel | ||
|
||
|
||
FROM python:3.9-slim | ||
ENV PIP_NO_CACHE_DIR yes | ||
WORKDIR /app | ||
RUN pip install --no-cache-dir --upgrade pip pipenv | ||
|
||
RUN apt-get update && apt-get upgrade -y && apt-get install -y git | ||
|
||
COPY Pipfile* / | ||
RUN pipenv install --system --clear --deploy | ||
|
||
COPY --from=build /app/dist/submitter-*-py3-none-any.whl . | ||
RUN pip install submitter-*-py3-none-any.whl | ||
RUN pipenv install | ||
|
||
ENTRYPOINT ["submitter"] | ||
ENTRYPOINT ["pipenv", "run", "submitter"] |