Skip to content

Commit

Permalink
Use uv sync --compile-bytecode to improve performance of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
elesiuta committed Jan 20, 2025
1 parent fd7d3db commit b321b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ COPY pyproject.toml /home/ubuntu/omron/pyproject.toml
COPY uv.lock /home/ubuntu/omron/uv.lock
RUN pipx install uv && \
cd ~/omron && \
~/.local/bin/uv sync --locked && \
~/.local/bin/uv sync --locked --compile-bytecode && \
~/.local/bin/uv cache clean && \
echo "source ~/omron/.venv/bin/activate" >> ~/.bashrc
ENV PATH="/home/ubuntu/omron/.venv/bin:${PATH}"
Expand Down

0 comments on commit b321b84

Please sign in to comment.