Skip to content

Commit

Permalink
Create Containerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
luciofstars authored Jun 5, 2024
1 parent 17f6542 commit 9fea8f8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions alpine/3.20/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM docker.io/library/alpine:3.20

LABEL com.github.containers.toolbox="true" \
name="alpine-toolbox" \
version="3.20" \
usage="This image is meant to be used with the toolbox command" \
summary="Base image for creating Alpine Linux toolbox containers" \
maintainer="Jorge O. Castro <jorge.castro@gmail.com>"

# Install extra packages
COPY extra-packages /
RUN apk update && \
apk upgrade && \
cat /extra-packages | xargs apk add
RUN rm /extra-packages

# Enable password less sudo
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/toolbox

# Copy the os-release file
RUN cp -p /etc/os-release /usr/lib/os-release

# Clear out /media
RUN rm -rf /media

0 comments on commit 9fea8f8

Please sign in to comment.