Skip to content

Commit

Permalink
chore: bump python 3.10 -> 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
collinlokken committed Jan 9, 2025
1 parent 710e9f1 commit 7810ec5
Show file tree
Hide file tree
Showing 4 changed files with 974 additions and 638 deletions.
8 changes: 4 additions & 4 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 python:3.11-slim as base
FROM --platform=linux/amd64 python:3.12-slim AS base
WORKDIR /code
CMD ["/code/src/init.sh", "api"]
EXPOSE 5000
Expand All @@ -13,14 +13,14 @@ RUN pip install --upgrade pip && \
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock

FROM base as development
FROM base AS development
RUN poetry install
WORKDIR /code/src
COPY src .
USER 1000

FROM base as prod
RUN poetry install --no-dev
FROM base AS prod
RUN poetry install --without dev
WORKDIR /code/src
COPY src .
USER 1000
Loading

0 comments on commit 7810ec5

Please sign in to comment.