Skip to content

Commit

Permalink
feat: add ubuntu-18.04
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Jan 2, 2024
1 parent 304fb78 commit 68f82df
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- tag: 'rockylinux-9'
dockerfile: 'rockylinux/9.Dockerfile'
platforms: linux/amd64,linux/arm64
- tag: 'ubuntu-18.04'
dockerfile: 'ubuntu/18.04.Dockerfile'
platforms: linux/amd64,linux/arm64
- tag: 'ubuntu-20.04'
dockerfile: 'ubuntu/20.04.Dockerfile'
platforms: linux/amd64,linux/arm64
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Rocky Linux:

Ubuntu:

- `ubuntu-18.04` (`linux/amd64`,`linux/arm64`)
- `ubuntu-20.04` (`linux/amd64`,`linux/arm64`)
- `ubuntu-22.04` (`linux/amd64`,`linux/arm64`)

Expand Down
22 changes: 22 additions & 0 deletions ubuntu/18.04.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ubuntu:18.04

LABEL maintainer='Anton Melekhin'

ENV container=docker \
DEBIAN_FRONTEND=noninteractive

RUN INSTALL_PKGS='ca-certificates gnupg iproute2 python3 python3-apt sudo systemd' \
&& apt-get update && apt-get install $INSTALL_PKGS -y --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
-not -name '*journald*' \
-not -name '*systemd-tmpfiles*' \
-not -name '*systemd-user-sessions*' \
-print0 | xargs -0 rm -vf

VOLUME [ "/sys/fs/cgroup" ]

ENTRYPOINT [ "/lib/systemd/systemd" ]

0 comments on commit 68f82df

Please sign in to comment.