Skip to content

Commit 02b9176

Browse files
committed
switch Dockerfiles to wolfi-base image
1 parent b8c70f9 commit 02b9176

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

Dockerfile

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
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
410
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+
713
ENTRYPOINT []

Dockerfile.ftest

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
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
510
WORKDIR /app
611
RUN make clean install
712
RUN .venv/bin/pip install -r requirements/ftest.txt

0 commit comments

Comments
 (0)