-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: py 3.10 compatibility * build: bump up to 0.2.1 * build: reduce image size
- Loading branch information
Showing
4 changed files
with
14 additions
and
6 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 |
---|---|---|
|
@@ -3,14 +3,22 @@ FROM python:3.10.4-alpine AS builder | |
RUN apk add --update --no-cache gcc musl-dev libffi-dev openssl-dev make cargo | ||
RUN pip install --no-cache-dir build | ||
COPY . /src | ||
RUN python -m build --wheel /src | ||
RUN pip wheel --no-cache-dir /src/dist/*.whl --wheel-dir /tmp/wheels | ||
RUN python -m build --wheel -o /tmp/dist /src | ||
RUN \ | ||
--mount=type=cache,target=/root/.cache/pip \ | ||
pip wheel /tmp/dist/*.whl --wheel-dir /wheel | ||
|
||
FROM python:3.10.4-alpine | ||
|
||
MAINTAINER 'Byeonghoon Isac Yoo <[email protected]>' | ||
|
||
COPY --from=builder /tmp/wheels/* /tmp/wheels/ | ||
RUN pip install /tmp/wheels/*.whl && rm -rf /tmp | ||
RUN \ | ||
--mount=type=bind,target=/wheel,from=builder,source=/wheel \ | ||
--mount=type=bind,target=/tmp/wheel,from=builder,source=/tmp/dist \ | ||
pip install \ | ||
--no-cache-dir \ | ||
--no-index \ | ||
--find-links=/wheel \ | ||
/tmp/wheel/*.whl | ||
|
||
ENTRYPOINT ["/usr/local/bin/get_oracle_a1"] |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
[tool.poetry] | ||
name = "get_oracle_a1" | ||
version = "0.2.0" | ||
version = "0.2.1" | ||
description = "" | ||
authors = ["Byeonghoon Yoo <[email protected]>"] | ||
license = "MIT" | ||
|