This commit is contained in:
Medzik 2022-02-16 14:16:50 +01:00
parent 8dd41afb1f
commit 3b88c0616c
No known key found for this signature in database
GPG key ID: A5FAC1E185C112DB
7 changed files with 12 additions and 2 deletions

View file

@ -28,6 +28,6 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
context: ./base
push: ${{ github.event_name != 'pull_request' }}
tags: medzik/archlinux:latest

View file

@ -1,4 +1,4 @@
FROM archlinux
FROM archlinux AS bootstrap
COPY resolv.conf /etc/resolv.conf
@ -18,3 +18,13 @@ RUN pacman -Syu --noconfirm \
RUN useradd --create-home build
COPY sudoers /etc/sudoers
# Create final image
FROM scratch
COPY --from=bootstrap / /
RUN ldconfig
ENV LANG=en_US.UTF-8
CMD ["/usr/bin/bash"]