mirror of
https://github.com/AlmaLinux/ks2rootfs.git
synced 2024-11-25 10:33:08 +00:00
Update Dockerfile.livecd
Added workdir to /code
This commit is contained in:
parent
7de3aaaf4e
commit
8938d9c140
@ -6,7 +6,7 @@ FROM almalinux:8 as builder
|
|||||||
|
|
||||||
RUN dnf install -y epel-release elrepo-release && \
|
RUN dnf install -y epel-release elrepo-release && \
|
||||||
dnf upgrade -y && \
|
dnf upgrade -y && \
|
||||||
mkdir -p /mnt/system-root /mnt/system-root/build; \
|
mkdir -p /mnt/system-root /mnt/system-root/code; \
|
||||||
dnf install --enablerepo="powertools" --enablerepo="epel" --enablerepo="elrepo" --installroot /mnt/system-root --releasever 8 --setopt=install_weak_deps=False --setopt=tsflags=nodocs -y \
|
dnf install --enablerepo="powertools" --enablerepo="epel" --enablerepo="elrepo" --installroot /mnt/system-root --releasever 8 --setopt=install_weak_deps=False --setopt=tsflags=nodocs -y \
|
||||||
dnf \
|
dnf \
|
||||||
systemd \
|
systemd \
|
||||||
@ -26,4 +26,6 @@ FROM scratch
|
|||||||
|
|
||||||
COPY --from=builder /mnt/system-root/ /
|
COPY --from=builder /mnt/system-root/ /
|
||||||
|
|
||||||
|
WORKDIR /code
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
Loading…
Reference in New Issue
Block a user