mirror of
https://github.com/dockersrc/archlinux
synced 2025-09-19 09:57:39 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
Some checks failed
archlinux / release-archlinux (push) Failing after 15m12s
Some checks failed
archlinux / release-archlinux (push) Failing after 15m12s
This commit is contained in:
32
Dockerfile.base
Normal file
32
Dockerfile.base
Normal file
@@ -0,0 +1,32 @@
|
||||
# Multi-architecture Dockerfile for Arch Linux
|
||||
# Supports both x86_64 and arm64v8 architectures
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
# Use conditional base image based on target architecture
|
||||
FROM --platform=$TARGETPLATFORM archlinux:latest AS base-amd64
|
||||
FROM --platform=$TARGETPLATFORM lopsided/archlinux-arm64v8:latest AS base-arm64
|
||||
|
||||
# Select the appropriate base image based on TARGETARCH
|
||||
FROM base-${TARGETARCH} AS base
|
||||
|
||||
# Update system and install essential packages
|
||||
RUN pacman -Syyu --noconfirm; \
|
||||
pacman -S --noconfirm git curl wget bash glibc-locales; \
|
||||
pacman -Scc --noconfirm
|
||||
|
||||
RUN echo "en_US.UTF-8 UTF-8" >/etc/locale.gen && locale-gen
|
||||
|
||||
# Set environment variables
|
||||
ENV LANG=en_US.UTF-8
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
|
||||
# Default command
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
# Labels for metadata
|
||||
LABEL version="1.0"
|
||||
LABEL maintainer="CasjaysDev"
|
||||
LABEL architecture="amd64,arm64"
|
||||
LABEL description="Multi-architecture Arch Linux container"
|
Reference in New Issue
Block a user