Skip to content

Commit

Permalink
pythonコマンドをuvで動かす
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit authored Feb 11, 2025
1 parent abc40f8 commit 7d5838c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ RUN apt-get update && \
uv sync --frozen; \
fi && \
npm install && \
pip uninstall -y uv virtualenv && \
apt-get remove -y git gcc libc6-dev gnupg && \
apt-get autoremove -y && \
apt-get clean && \
Expand All @@ -57,7 +56,7 @@ USER nonroot
ENV PATH="/usr/src/app/.venv/bin:$PATH"

# Matplotlib用のフォントキャッシュ生成
RUN python -c 'import matplotlib.pyplot'
RUN uv python -c 'import matplotlib.pyplot'

COPY *.py ./
COPY library library
Expand All @@ -69,4 +68,4 @@ COPY --from=commit-hash slackbot_settings.py slackbot_settings.py

ENV GIT_PYTHON_REFRESH=quiet
ENV NODE_OPTIONS="--max-old-space-size=512"
CMD ["python", "entrypoint.py"]
CMD ["uv", "python", "entrypoint.py"]

0 comments on commit 7d5838c

Please sign in to comment.