Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma authored Mar 30, 2024
1 parent 4195175 commit 54d80ba
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions ubuntu1804/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN sed -i 's/# deb/deb/g' /etc/apt/sources.list

# Enable systemd.
RUN apt-get update ; \
apt-get install -y systemd systemd-sysv ; \
apt-get install -y systemd systemd-sysv sudo ; \
apt-get clean ; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ; \
cd /lib/systemd/system/sysinit.target.wants/ ; \
Expand All @@ -34,18 +34,8 @@ RUN apt-get update ; \
rm -f /lib/systemd/system/plymouth* ; \
rm -f /lib/systemd/system/systemd-update-utmp*

# Install requirements.
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y \
python3 \
sudo \
gnupg \
python3-apt \
apt-transport-https \
ca-certificates \
&& apt-get clean

VOLUME [ "/sys/fs/cgroup" ]

CMD ["/lib/systemd/systemd"]

CMD tail -f /dev/null

0 comments on commit 54d80ba

Please sign in to comment.