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 #19096

Merged
merged 2 commits into from
May 17, 2022
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: 2 additions & 4 deletions scripts/datacontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM mcr.microsoft.com/cbl-mariner/distroless/base:1.0

RUN apk update && \
apk add git
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:20.04

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add RUN apt update?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this. Because the ubuntu already have git. The whole Dockerfile doesn't have any other dependencies.

RUN mkdir -p /usr/data/specrepo/

COPY .git /usr/data/specrepo/.git

WORKDIR /usr/data/scripts/
Expand Down