~mapperr/dockerfiles

7772d667d6a90ea6476e037f476ad3af5bc7f407 — mapperr 5 months ago 81a8270
wip new dockerfile syntax
1 files changed, 16 insertions(+), 11 deletions(-)

M archlinux/Dockerfile
M archlinux/Dockerfile => archlinux/Dockerfile +16 -11
@@ 1,14 1,18 @@
# syntax=docker/dockerfile:1.6

FROM archlinux

ARG MY_USER
ARG SSH_PORT
ARG YAY_INSTALL_FILE
ARG MY_USER=arch
ARG SSH_PORT=2222
ARG YAY_INSTALL_FILE=yay_packages

RUN \
    --mount=type=cache,target=/var/cache/pacman \
    pacman --noconfirm -Sy  && \
    pacman --noconfirm -S archlinux-keyring  && \
    pacman --noconfirm -Su  && \
    <<-EOF
    set -ex
    pacman --noconfirm -Sy 
    pacman --noconfirm -S archlinux-keyring 
    pacman --noconfirm -Su 
    pacman --noconfirm -S \
        base-devel \
        sudo \


@@ 18,13 22,14 @@ RUN \
        git \
        git-crypt \
        gopass
EOF


RUN \
    echo 'en_US.UTF-8 UTF-8' >>/etc/locale.gen && \
    locale-gen && \
    echo 'LANG=en_US.UTF-8' >/etc/locale.conf && \
RUN <<-EOF
    echo 'en_US.UTF-8 UTF-8' >>/etc/locale.gen
    locale-gen
    echo 'LANG=en_US.UTF-8' >/etc/locale.conf
    ln -sf /usr/share/zoneinfo/Europe/Rome /etc/localtime
EOF

RUN \
    useradd -m ${MY_USER} && \