File tree 2 files changed +20
-9
lines changed
2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
- FROM python:3.11-slim-bookworm
2
- RUN apt -y update && apt -y upgrade && apt -y install make git
3
- COPY . /app
1
+ FROM cgr.dev/chainguard/wolfi-base
2
+ ARG python_version=3.11
3
+
4
+ USER root
5
+ RUN apk update && apk add python3=~${python_version} make git
6
+
7
+ COPY --chown=nonroot:nonroot . /app
8
+
9
+ USER nonroot
4
10
WORKDIR /app
5
- RUN make clean install
6
- RUN ln -s .venv/bin /app/bin
11
+ RUN make clean install && ln -s .venv/bin /app/bin
12
+
7
13
ENTRYPOINT []
Original file line number Diff line number Diff line change 1
- FROM python:3.11-slim-bookworm
2
- # RUN apt update && apt install make
3
- RUN apt -y update && apt -y upgrade && apt -y install make git
4
- COPY . /app
1
+ FROM cgr.dev/chainguard/wolfi-base
2
+ ARG python_version=3.11
3
+
4
+ USER root
5
+ RUN apk update && apk add python3=~${python_version} make git
6
+
7
+ COPY --chown=nonroot:nonroot . /app
8
+
9
+ USER nonroot
5
10
WORKDIR /app
6
11
RUN make clean install
7
12
RUN .venv/bin/pip install -r requirements/ftest.txt
You can’t perform that action at this time.
0 commit comments