Skip to content

Commit

Permalink
build: optimize dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
isac322 committed May 22, 2023
1 parent 165341a commit d1f345e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV CC='ccache gcc'
RUN \
apk add --update --no-cache gcc ccache musl-dev libffi-dev \
&& pip install --no-cache-dir build
COPY . /src
COPY poetry.lock pyproject.toml /src/
COPY get_oracle_a1 /src/get_oracle_a1
RUN python -m build --wheel -o /tmp/dist /src
RUN \
--mount=type=cache,target=/root/.cache/pip \
Expand Down

0 comments on commit d1f345e

Please sign in to comment.