Skip to content

Commit 9d38ed2

Browse files
committed
Use a hardened python 3.12 image
1 parent 9d637f5 commit 9d38ed2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# syntax=docker/dockerfile:experimental
2-
FROM quay.io/unstructured-io/base-images:wolfi-base-latest as base
2+
# FROM quay.io/unstructured-io/base-images:wolfi-base-latest as base
3+
FROM cgr.dev/chainguard/python:3.12 as base
34

45
# NOTE(crag): NB_USER ARG for mybinder.org compat:
56
# https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html
@@ -14,9 +15,6 @@ ENV PIP ${PYTHON} -m pip
1415

1516
WORKDIR ${HOME}
1617

17-
USER root
18-
RUN apk add --no-cache python-3.12 py3.12-pip
19-
2018
USER ${NB_USER}
2119

2220
ENV PYTHONPATH="${PYTHONPATH}:${HOME}"

0 commit comments

Comments
 (0)