Skip to content

skriptzip/docker_alpine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Alpine Linux Base Image

Docker Image Alpine Version

A minimal, secure Alpine Linux base image with essential tools for containerized applications.

๐Ÿ“ฆ What's Included

  • Base OS: Alpine Linux 3.22
  • Init system: tini for proper PID 1 behavior
  • User tools: su-exec for privilege dropping
  • Shell environment: Custom profile with enhanced prompt and aliases

๐Ÿ› ๏ธ Usage

Pull from Registry

docker pull ghcr.io/skriptzip/alpine:main

Build Locally

# Build with default Alpine version (3.22)
docker build -t my-alpine .

# Build with specific Alpine version
docker build --build-arg ALPINE_TAG=3.21 -t my-alpine .

Run Container

# Interactive shell
docker run -it --rm ghcr.io/skriptzip/alpine:main

# Run with custom command
docker run --rm ghcr.io/skriptzip/alpine:main echo "Hello World"

# Run as specific user (using su-exec)
docker run --rm ghcr.io/skriptzip/alpine:main su-exec 1000:1000 whoami

Use as Base Image

FROM ghcr.io/skriptzip/alpine:main

# Your application setup
RUN apk add --no-cache python3 py3-pip
COPY app.py /app/
WORKDIR /app

# Use su-exec to run as non-root
CMD ["su-exec", "1000:1000", "python3", "app.py"]

๐Ÿ—๏ธ Build Arguments

Argument Default Description
ALPINE_TAG 3.22 Alpine Linux version to use as base

Example:

docker build --build-arg ALPINE_TAG=3.21 -t my-alpine .

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages