Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dockerfile to fix CVEs #58

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading