Skip to content

Commit

Permalink
Trying a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Nov 8, 2024
1 parent da2a435 commit b73797a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ RUN --mount=type=cache,target=/var/cache/apk \
sed -i 's/v3.19/edge/' /etc/apk/repositories && \
apk --update-cache upgrade && \
apk add git libxml2 xmlsec-dev build-base jq curl && \
sh /tmp/install-uv.sh && source $HOME/.local/bin/env && \
sh /tmp/install-uv.sh && \
rm /tmp/install-uv.sh

ADD requirements.txt /app/
#RUN --mount=type=cache,target=/root/.cache \
RUN uv pip install --system -r requirements.txt;
RUN /root/.local/bin/uv pip install --system -r requirements.txt;

ADD uber-wrapper.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/uber-wrapper.sh
Expand All @@ -39,7 +39,7 @@ ENV uber_plugins=$PLUGIN_NAMES
FROM build as test
ADD requirements_test.txt /app/
#RUN --mount=type=cache,target=/root/.cache \
RUN uv pip install --system -r requirements_test.txt
RUN /root/.local/bin/uv pip install --system -r requirements_test.txt
CMD python -m pytest
ADD . /app

Expand Down

0 comments on commit b73797a

Please sign in to comment.