Skip to content

Commit

Permalink
Update Dockerfile to use Python 3.12 (#503)
Browse files Browse the repository at this point in the history
- Updates Dockerfile.
- Updates dependencies.

Signed-off-by: Rémy Greinhofer <remy.greinhofer@gmail.com>
  • Loading branch information
rgreinho authored Feb 20, 2024
1 parent fd9f3c0 commit 84e7394
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 245 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.5-slim-bookworm AS builder
FROM python:3.12.2-slim-bookworm AS builder

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand All @@ -13,11 +13,12 @@ RUN apt-get update \
WORKDIR /usr/src/app
COPY . .
RUN poetry self update \
&& poetry export -f requirements.txt --output requirements.txt \
&& mkdir -p deps \
&& pip wheel -r requirements.txt -w deps \
&& poetry build -f wheel

FROM python:3.11.5-slim-bookworm
FROM python:3.12.2-slim-bookworm
LABEL author="PeopleForBikes" \
maintainer="BNA Mechanics - https://peopleforbikes.github.io" \
org.opencontainers.image.description="Run a BNA analysis locally." \
Expand Down
Loading

0 comments on commit 84e7394

Please sign in to comment.