From 7649b10046df6af5808b82efaa5df41ebd2f3cf9 Mon Sep 17 00:00:00 2001 From: liuyx Date: Mon, 2 Sep 2024 16:02:16 +0800 Subject: [PATCH] feat: update --- Dockerfile | 12 ++---------- docker-compose.yaml | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index f77dd83..fd7353f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,3 @@ -FROM ubuntu:22.04 +FROM robertdebock/ubuntu:jammy -RUN echo 'root:root' | chpasswd -RUN printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d -RUN apt-get update -RUN apt-get install -y systemd systemd-sysv -RUN printf "systemctl start systemd-logind" >> /etc/profile - -RUN apt-get install wget net-tools - -ENTRYPOINT ["/sbin/init"] \ No newline at end of file +RUN apt-get install wget net-tools \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index f0fe8e2..e4ecdf7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,4 +17,4 @@ services: - /etc/localtime:/etc/localtime:ro environment: APP_ADDRESS: 0.0.0.0:3111 - # command: ['tail', '-f', '/dev/null'] + command: ['tail', '-f', '/dev/null']