Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
esme518 committed Jan 20, 2024
1 parent 1f40f02 commit 7291f02
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
# Dockerfile for dr_py
#

FROM cgr.dev/chainguard/wolfi-base as builder

ARG version=3.10

RUN set -ex \
&& apk add --update --no-cache \
python-${version} \
py${version}-pip
FROM esme518/wolfi-base-python:3.10 as builder

RUN set -ex \
&& apk add --update --no-cache \
python-${version}-dev \
build-base
&& apk add --update --no-cache \
build-base \
python-3.10-dev \
&& rm -rf /tmp/* /var/cache/apk/*

RUN python -m venv /venv
ENV PATH="/venv/bin:$PATH"
Expand All @@ -29,14 +23,7 @@ RUN set -ex \
&& pip install -r requirements.txt \
&& pip list

FROM cgr.dev/chainguard/wolfi-base

ARG version=3.10

RUN set -ex \
&& apk add --update --no-cache \
python-${version} \
py${version}-pip
FROM esme518/wolfi-base-python:3.10

COPY --from=builder /venv /venv
ENV PATH="/venv/bin:$PATH"
Expand Down

0 comments on commit 7291f02

Please sign in to comment.