Skip to content

Commit

Permalink
Upgrade dockerfile to Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Feb 3, 2024
1 parent fc53597 commit 4567141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .docker/nautilus_trader.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim as base
FROM python:3.12-slim as base
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
Expand Down Expand Up @@ -38,10 +38,10 @@ COPY README.md ./
RUN poetry install --only main --all-extras
RUN poetry build -f wheel
RUN python -m pip install ./dist/*whl --force --no-deps
RUN find /usr/local/lib/python3.11/site-packages -name "*.pyc" -exec rm -f {} \;
RUN find /usr/local/lib/python3.12/site-packages -name "*.pyc" -exec rm -f {} \;

# Final application image
FROM base as application

COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY examples ./examples

0 comments on commit 4567141

Please sign in to comment.