mirror of
https://github.com/MedzikUser/docker-arch
synced 2024-08-06 00:03:34 +00:00
update
This commit is contained in:
parent
8dd41afb1f
commit
3b88c0616c
7 changed files with 12 additions and 2 deletions
2
.github/workflows/docker-publish.yml
vendored
2
.github/workflows/docker-publish.yml
vendored
|
@ -28,6 +28,6 @@ jobs:
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ./base
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: medzik/archlinux:latest
|
tags: medzik/archlinux:latest
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM archlinux
|
FROM archlinux AS bootstrap
|
||||||
|
|
||||||
COPY resolv.conf /etc/resolv.conf
|
COPY resolv.conf /etc/resolv.conf
|
||||||
|
|
||||||
|
@ -18,3 +18,13 @@ RUN pacman -Syu --noconfirm \
|
||||||
RUN useradd --create-home build
|
RUN useradd --create-home build
|
||||||
|
|
||||||
COPY sudoers /etc/sudoers
|
COPY sudoers /etc/sudoers
|
||||||
|
|
||||||
|
# Create final image
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=bootstrap / /
|
||||||
|
|
||||||
|
RUN ldconfig
|
||||||
|
|
||||||
|
ENV LANG=en_US.UTF-8
|
||||||
|
CMD ["/usr/bin/bash"]
|
Loading…
Reference in a new issue