Skip to content

Commit

Permalink
Merge pull request #408 from lintongj/xport-release-1.3
Browse files Browse the repository at this point in the history
[Crossport] Fixed kubectl cp command from datamgr pods with distroless base image
  • Loading branch information
Lintong Jiang authored Oct 27, 2021
2 parents 0a81de9 + 6b74232 commit f1f7a8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile-datamgr
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM busybox:1.33.1 AS busybox

FROM gcr.io/distroless/base-debian10:nonroot
ADD /bin/linux/amd64/data-* /datamgr
COPY /bin/linux/amd64/lib/vmware-vix-disklib/lib64/* /vddkLibs/
COPY --from=busybox /bin/sh /bin/sh
COPY --from=busybox /bin/cp /bin/cp
COPY --from=busybox /bin/tar /bin/tar
COPY --from=busybox /bin/ls /bin/ls
USER nonroot:nonroot
ENTRYPOINT ["/datamgr"]

0 comments on commit f1f7a8f

Please sign in to comment.