Skip to content

Commit

Permalink
Merge pull request #58 from ruomengh/cve
Browse files Browse the repository at this point in the history
Update dockerfile to fix CVEs
  • Loading branch information
ruomengh authored Apr 22, 2024
2 parents 3886849 + 1726b59 commit 9e111da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions container/ccnp-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Build python example dependencies
FROM python:3.12.1-alpine3.19 AS python-builder
FROM python:3.12.3-alpine3.19 AS python-builder

RUN apk update && apk add git
RUN python3 -m pip install --upgrade build
Expand All @@ -24,7 +24,7 @@ COPY service/ccnp-server/proto/ccnp-server.proto ccnp-sdk/ccnp/proto/ccnp-server
RUN cd ccnp-sdk/example && cargo build --release

# Copy/Install
FROM python:3.12.1-alpine3.19
FROM python:3.12.3-alpine3.19

WORKDIR /run/ccnp

Expand All @@ -36,7 +36,7 @@ COPY --from=python-builder ccnp-sdk/dist/ccnp*.whl ./
COPY --from=golang-builder /go/ccnp-sdk/example/go-sdk-example ./
COPY --from=rust-builder ccnp-sdk/example/target/release/rust-sdk-example ./

RUN apk update && apk add bash vim tar wget
RUN apk update && apk add bash vim tar wget libexpat=2.6.2-r0
RUN pip install ./cctrusted_base*.whl ./ccnp*.whl pytest && rm -f *.whl

ENTRYPOINT ["tail", "-f", "/dev/null"]

0 comments on commit 9e111da

Please sign in to comment.