mirror of
https://github.com/Snigdha-OS/snigdhaos-docker.git
synced 2025-09-05 17:36:36 +02:00
🐛 fix: imrove and image fix
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Stage 1: Build the root filesystem
|
||||
FROM archlinux:base-devel AS rootfs
|
||||
FROM archlinux:latest AS rootfs
|
||||
|
||||
# Update system and install base packages
|
||||
# Update system and install essential packages
|
||||
RUN pacman -Syu --noconfirm && \
|
||||
pacman -S --needed --noconfirm pacman-contrib git openssh sudo curl
|
||||
pacman -S --needed --noconfirm base-devel pacman-contrib git openssh sudo curl
|
||||
|
||||
# Add custom pacman configuration
|
||||
COPY pacman.conf /etc/pacman.conf
|
||||
@@ -40,5 +40,9 @@ LABEL org.opencontainers.image.title="Snigdha OS Container" \
|
||||
# Copy the prepared root filesystem
|
||||
COPY --from=rootfs / /
|
||||
|
||||
# Set environment variables (optional)
|
||||
ENV LANG=C.UTF-8 \
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
# Default command
|
||||
CMD ["/usr/bin/bash"]
|
||||
CMD ["/bin/bash"]
|
||||
|
Reference in New Issue
Block a user