Skip to content

Instantly share code, notes, and snippets.

@pingkunga
Last active October 4, 2023 05:18
Show Gist options
  • Save pingkunga/12e89185a1bc68be1865322599358b54 to your computer and use it in GitHub Desktop.
Save pingkunga/12e89185a1bc68be1865322599358b54 to your computer and use it in GitHub Desktop.
Light Weight Container with docker git zip and basic security
FROM alpine:latest
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/
RUN apk --update add zip git curl --no-cache
RUN apk cache clean
RUN adduser -D invs
RUN rm -rf /bin/cat
RUN rm -rf /bin/touch
RUN rm -rf /bin/ls
RUN rm -rf /bin/touch
RUN rm -rf /bin/sh
LABEL desc="Light Weight Container with docker git zip and basic security vi curl"
USER invs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment